From edd301531af3a97b57bd8104bc4fabc9dd25a104 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 13 Apr 2016 11:18:01 +0200 Subject: [PATCH] close popup upon item select klipper follows the pattern of a menu, in order to be consistent with other applets that use this pattern (like launchers or device notifier) close the menu after cliching on an item to show the user something happened BUG:361629 --- applets/clipboard/contents/ui/ClipboardItemDelegate.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applets/clipboard/contents/ui/ClipboardItemDelegate.qml b/applets/clipboard/contents/ui/ClipboardItemDelegate.qml index 476425d87..d491b598b 100644 --- a/applets/clipboard/contents/ui/ClipboardItemDelegate.qml +++ b/applets/clipboard/contents/ui/ClipboardItemDelegate.qml @@ -41,7 +41,10 @@ PlasmaComponents.ListItem { enabled: true - onClicked: menuItem.itemSelected(UuidRole) + onClicked: { + menuItem.itemSelected(UuidRole); + plasmoid.expanded = false; + } onContainsMouseChanged: { if (containsMouse) { menuListView.currentIndex = index