aboutsummaryrefslogtreecommitdiff
path: root/lumina-config/AppDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-config/AppDialog.h')
-rw-r--r--lumina-config/AppDialog.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-config/AppDialog.h b/lumina-config/AppDialog.h
index acc6c73e..8c35d9b7 100644
--- a/lumina-config/AppDialog.h
+++ b/lumina-config/AppDialog.h
@@ -39,8 +39,10 @@ public:
ui->comboBox->addItem( LXDG::findIcon(APPS[i].icon,"application-x-executable"), APPS[i].name );
}
this->setWindowIcon( LXDG::findIcon("system-search","") );
- QPoint center = QApplication::desktop()->screenGeometry(QCursor::pos()).center();
- this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) );
+ if(parent!=0){
+ QPoint center = parent->geometry().center();
+ this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) );
+ }
}
~AppDialog(){}
bgstack15