summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2017-03-29 15:35:30 (GMT)
committerDavid Edmundson <kde@davidedmundson.co.uk>2017-03-29 15:35:30 (GMT)
commitc24ae6602b0d01cb629e17c4789cecf8c15bd048 (patch)
treeed95cf10086f7bdc03ed4caf9644f58d16980e74
parent2cf3b8a5cdf4bfe95223d9020d15611313e49053 (diff)
Connect aboutToHide signal from QMenu to relevant libdbusmenu-qt slot
Summary: This sends the close event to the client which then sends aboutToHide to the QMenu. Code was all there, just not hooked up BUG: 375053 Test Plan: Added qDebug to the test app inside libdbusmenuqt Reviewers: #plasma, markg, broulik Reviewed By: #plasma, markg, broulik Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D5192
-rw-r--r--libdbusmenuqt/dbusmenuimporter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenuqt/dbusmenuimporter.cpp b/libdbusmenuqt/dbusmenuimporter.cpp
index 677ffb4..9c4a1df 100644
--- a/libdbusmenuqt/dbusmenuimporter.cpp
+++ b/libdbusmenuqt/dbusmenuimporter.cpp
@@ -437,6 +437,7 @@ void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher *watcher)
updateMenu(menu);
});
}
+ connect(menu, &QMenu::aboutToHide, this, &DBusMenuImporter::slotMenuAboutToHide);
menu->addAction(action);
} else {