diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index a2d87f1f7..bc61ef51b 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -681,8 +681,9 @@ void MainApplication::postLaunch() connect(this, SIGNAL(messageReceived(QString)), this, SLOT(messageReceived(QString))); connect(this, SIGNAL(aboutToQuit()), this, SLOT(saveSettings())); - checkDefaultWebBrowser(); QtWin::createJumpList(); + + QTimer::singleShot(1000, this, SLOT(checkDefaultWebBrowser())); } void MainApplication::saveSession() diff --git a/src/lib/app/mainapplication.h b/src/lib/app/mainapplication.h index 6784794ca..0166134f4 100644 --- a/src/lib/app/mainapplication.h +++ b/src/lib/app/mainapplication.h @@ -128,6 +128,7 @@ private slots: void messageReceived(const QString &message); void windowDestroyed(QObject* window); void onFocusChanged(); + void checkDefaultWebBrowser(); void downloadRequested(QWebEngineDownloadItem *download); @@ -143,7 +144,6 @@ private: void translateApp(); void backupSavedSessions(); - void checkDefaultWebBrowser(); void setUserStyleSheet(const QString &filePath); diff --git a/src/lib/other/registerqappassociation.cpp b/src/lib/other/registerqappassociation.cpp index a1f001280..8a044be63 100644 --- a/src/lib/other/registerqappassociation.cpp +++ b/src/lib/other/registerqappassociation.cpp @@ -18,6 +18,8 @@ * ============================================================ */ #include "registerqappassociation.h" +#include "mainapplication.h" +#include "browserwindow.h" #include "ShlObj.h" #include @@ -105,7 +107,7 @@ bool RegisterQAppAssociation::registerAppCapabilities() capabilitiesKey = regLocalMachine.value("Software/RegisteredApplications/" + _appRegisteredName).toString(); if (capabilitiesKey.isEmpty()) { - QMessageBox::warning(0, tr("Warning!"), + QMessageBox::warning(mApp->getWindow(), tr("Warning!"), tr("There are some problems. Please, reinstall QupZilla.\n" "Maybe relaunch with administrator right do a magic for you! ;)")); return false;