Fix use of deprecated QApplication::desktop()

This commit is contained in:
baldurk
2019-07-10 15:18:53 +01:00
parent 77d9d45af5
commit 935f243500
+2 -1
View File
@@ -32,6 +32,7 @@
#include <QLabel>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QScreen>
#include <QSslSocket>
#include <QString>
#include <QUrlQuery>
@@ -207,7 +208,7 @@ void CrashDialog::resizeEvent(QResizeEvent *)
}
void CrashDialog::recentre()
{
QRect scr = QApplication::desktop()->screenGeometry();
QRect scr = QApplication::primaryScreen()->geometry();
move(scr.center() - rect().center());
// when we're first shown, on this stage, move the cursor