summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-01-25 16:45:26 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-01-25 16:45:26 (GMT)
commit38fca064a1d0d4ec94543805e948f7771bc021a1 (patch)
tree56fd214fe1afc1149460b29fb9e845f825cb8f2e
parent7993cd433ca68a0136a990d3f1710a6360024fe9 (diff)
[Task Manager] Hide group dialog when opening applets settings
When moving focus from one Plasma window to another (e.g. in this case opening the applet config dialog), Plasma Dialog stays open even with hideOnWindowDeactivate. Since changing task manager settings might affect grouping and triggers unintentional behavior when the model is used in a GroupDialog without grouping / fildering, just hide the popup in this case. Differential Revision: https://phabricator.kde.org/D4280
-rw-r--r--applets/taskmanager/package/contents/ui/main.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/applets/taskmanager/package/contents/ui/main.qml b/applets/taskmanager/package/contents/ui/main.qml
index 973a1f6..d7820ee 100644
--- a/applets/taskmanager/package/contents/ui/main.qml
+++ b/applets/taskmanager/package/contents/ui/main.qml
@@ -41,6 +41,12 @@ Item {
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
+ Plasmoid.onUserConfiguringChanged: {
+ if (plasmoid.userConfiguring) {
+ groupDialog.visible = false;
+ }
+ }
+
Layout.fillWidth: true
Layout.fillHeight:true
Layout.minimumWidth: tasks.vertical ? 0 : LayoutManager.preferredMinWidth()