aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/AppDialog.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-30 15:05:54 -0400
committerKen Moore <moorekou@gmail.com>2016-06-30 15:05:54 -0400
commit70a35d68f5db7abd57210bc289a334df8dbc1dd2 (patch)
tree93fcc923e1ba4dabf6d8fac04188a00618dff73e /src-qt5/core-utils/lumina-config/AppDialog.h
parentFix some whitespace issues with the ls.json.sh script. (diff)
downloadlumina-70a35d68f5db7abd57210bc289a334df8dbc1dd2.tar.gz
lumina-70a35d68f5db7abd57210bc289a334df8dbc1dd2.tar.bz2
lumina-70a35d68f5db7abd57210bc289a334df8dbc1dd2.zip
Add the new jsonmenu menu plugin to lumina-config, with a new dialog for setting it up.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/AppDialog.h')
-rw-r--r--src-qt5/core-utils/lumina-config/AppDialog.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core-utils/lumina-config/AppDialog.h b/src-qt5/core-utils/lumina-config/AppDialog.h
index 8c35d9b7..392dbe4d 100644
--- a/src-qt5/core-utils/lumina-config/AppDialog.h
+++ b/src-qt5/core-utils/lumina-config/AppDialog.h
@@ -4,7 +4,7 @@
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
-// This is the dialog for catching keyboard events and converting them to X11 keycodes
+// This is the dialog for selecting an installed application
//===========================================
#ifndef _LUMINA_FILE_MANAGER_APP_SELECT_DIALOG_H
#define _LUMINA_FILE_MANAGER_APP_SELECT_DIALOG_H
@@ -40,7 +40,9 @@ public:
}
this->setWindowIcon( LXDG::findIcon("system-search","") );
if(parent!=0){
- QPoint center = parent->geometry().center();
+ QWidget *top = parent;
+ while(!top->isWindow()){ top = top->parentWidget(); }
+ QPoint center = top->geometry().center();
this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) );
}
}
bgstack15