kdeui: enable legacy mode when not build with libdbusmenu-qt support

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2015-11-18 04:52:26 +00:00
parent 9272567f30
commit 9baa39f370

View file

@ -421,6 +421,8 @@ void KStatusNotifierItem::setContextMenu(KMenu *menu)
} else if (d->menu != menu) {
#ifdef HAVE_DBUSMENUQT
if (getenv("KSNI_NO_DBUSMENU")) {
#else
d->setLegacySystemTrayEnabled(true);
#endif
// This is a hack to make it possible to disable DBusMenu in an
// application. The string "/NO_DBUSMENU" must be the same as in