Commit 27c65aad authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Don't try to open application menu when client doesn't have one

There's no point in sending a DBus message to an invalid (empty) address

Differential Revision:
parent 757ed91a
......@@ -112,6 +112,9 @@ void ApplicationMenu::slotMenuHidden(const QString &serviceName, const QDBusObje
void ApplicationMenu::showApplicationMenu(const QPoint &p, AbstractClient *c, int actionId)
if (!c->hasApplicationMenu()) {
m_appmenuInterface->showMenu(p.x(), p.y(), c->applicationMenuServiceName(), QDBusObjectPath(c->applicationMenuObjectPath()), actionId);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment