From 8a96d2ba60a30a6cb0bebace3134dd65d0268b04 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 29 Aug 2017 15:54:30 -0400 Subject: Get a lot of the root context menu up and running. Now the application list is available and functional, plus the beginnings of the task manager plugin for the menu. --- src-qt5/core/libLumina/LuminaXDG.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp') diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp index dea1938b..c1e7e199 100644 --- a/src-qt5/core/libLumina/LuminaXDG.cpp +++ b/src-qt5/core/libLumina/LuminaXDG.cpp @@ -445,6 +445,7 @@ bool XDGDesktop::setAutoStarted(bool autostart){ } void XDGDesktop::addToMenu(QMenu *topmenu){ + if(!this->isValid()){ return; } if(actions.isEmpty()){ //Just a single entry point - no extra actions QAction *act = new QAction(this->name, topmenu); @@ -617,6 +618,7 @@ void XDGDesktopList::populateMenu(QMenu *topmenu, bool byCategory){ menu->setIcon(LXDG::findIcon(icon,"")); QList appL = APPS.value(cats[i]); for( int a=0; aaddToMenu(menu); } + topmenu->addMenu(menu); } //end loop over cats }else{ QList APPS = this->apps(false, false); -- cgit