diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-30 22:19:27 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-30 22:19:27 -0400 |
commit | fda22def5e685517433f686307ea00e90b6ec070 (patch) | |
tree | 481b0aa4a67cd8cfe39698ef9722fc4d1e038727 /src-qt5/core-utils/lumina-config/AppDialog.h | |
parent | Setup lumina-fileinfo that that it can be used to create brand-new applicatio... (diff) | |
parent | Ensure that the quick command run routine will never hang the system for more... (diff) | |
download | lumina-fda22def5e685517433f686307ea00e90b6ec070.tar.gz lumina-fda22def5e685517433f686307ea00e90b6ec070.tar.bz2 lumina-fda22def5e685517433f686307ea00e90b6ec070.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core-utils/lumina-config/AppDialog.h')
-rw-r--r-- | src-qt5/core-utils/lumina-config/AppDialog.h | 6 |
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) ); } } |