From e1ce3d4cac9fd4c8ab2b5c0acefaa60e0703d3d2 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 14 Feb 2018 12:07:38 +0100 Subject: [PATCH] Also ignore actions non-existing when creating the Menu --- gmenu-dbusmenu-proxy/menuproxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmenu-dbusmenu-proxy/menuproxy.cpp b/gmenu-dbusmenu-proxy/menuproxy.cpp index 26ea16831..ec85985d3 100644 --- a/gmenu-dbusmenu-proxy/menuproxy.cpp +++ b/gmenu-dbusmenu-proxy/menuproxy.cpp @@ -171,7 +171,7 @@ void MenuProxy::onWindowAdded(WId id) const QString unityObjectPath = QString::fromUtf8(getWindowPropertyString(id, s_unityObjectPath)); const QString windowObjectPath = QString::fromUtf8(getWindowPropertyString(id, s_gtkWindowObjectPath)); - if (serviceName.isEmpty() || applicationObjectPath.isEmpty() || windowObjectPath.isEmpty()) { + if (serviceName.isEmpty()) { return; }