mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 07:16:11 -05:00
Put the Login Dialog in the acreen center of the window
This commit is contained in:
parent
180cb7aeed
commit
cff0fad937
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user