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: https://phabricator.kde.org/D12444
This commit is contained in:
parent
757ed91a5d
commit
27c65aade3
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
return;
|
||||
}
|
||||
m_appmenuInterface->showMenu(p.x(), p.y(), c->applicationMenuServiceName(), QDBusObjectPath(c->applicationMenuObjectPath()), actionId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue