File 0001-Fix-submenus-not-updating-when-switching-between-cat.patch of Package plasma5-desktop
From e23e67d6bee500f7682c4bf40431fa80de8e69c2 Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Wed, 9 May 2018 09:53:24 +0200
Subject: [PATCH] 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 26cad556..165e43de 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) {
--
2.16.2