diff options
author | Ken Moore <ken@ixsystems.com> | 2017-08-29 15:54:30 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-08-29 15:54:30 -0400 |
commit | 8a96d2ba60a30a6cb0bebace3134dd65d0268b04 (patch) | |
tree | 4b4a301bb5f43d3d10a312af073d2c64fa49eaf2 /src-qt5/core/libLumina/LuminaXDG.cpp | |
parent | Start getting the Root context menu all moved over from Lumina 1 to 2. (diff) | |
download | lumina-8a96d2ba60a30a6cb0bebace3134dd65d0268b04.tar.gz lumina-8a96d2ba60a30a6cb0bebace3134dd65d0268b04.tar.bz2 lumina-8a96d2ba60a30a6cb0bebace3134dd65d0268b04.zip |
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.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaXDG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<XDGDesktop*> appL = APPS.value(cats[i]); for( int a=0; a<appL.length(); a++){ appL[a]->addToMenu(menu); } + topmenu->addMenu(menu); } //end loop over cats }else{ QList<XDGDesktop*> APPS = this->apps(false, false); |