summaryrefslogtreecommitdiff
blob: ce6c7a8a279114d66ad5480d030cda364faabc88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From c0cd1f8d49e6d63f1988d4749c366a0bef177790 Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Wed, 9 May 2018 16:24:15 +0900
Subject: Fix submenus not updating when switching between categories of the
 same size

Summary:
This fixes a regression introduced in 38403268aad3, which forgot to
handle the branch where the counts are the same.

BUG:394013

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12774
---
 applets/kicker/plugin/funnelmodel.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/applets/kicker/plugin/funnelmodel.cpp b/applets/kicker/plugin/funnelmodel.cpp
index 26cad55..165e43d 100644
--- a/applets/kicker/plugin/funnelmodel.cpp
+++ b/applets/kicker/plugin/funnelmodel.cpp
@@ -81,6 +81,8 @@ void FunnelModel::setSourceModel(QAbstractItemModel *model)
             setNewModel();
             endRemoveRows();
         }
+    } else {
+        setNewModel();
     }
 
     if (newCount > 0) {
-- 
cgit v0.11.2