Merge pull request #1827 from defnax/Login-dialog-centered

Put the Login Dialog in the screen center of the window
This commit is contained in:
csoler 2020-03-09 22:29:18 +01:00 committed by GitHub
commit 44f346a0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@
#include <QLineEdit>
#include <QMessageBox>
#include <QDesktopWidget>
#include <iostream>
@ -46,6 +47,10 @@ StartDialog::StartDialog(QWidget *parent)
#endif
Settings->loadWidgetInformation(this);
/* Put the Login dialog in the screen center */
const QRect screen = QApplication::desktop()->screenGeometry();
this->move( screen.center() - this->rect().center() );
/* get all available pgp private certificates....
* mark last one as default.