mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Windows: After showing QZ window (1s delay) try to check as default and show dialogs as child of QZ window.
- Closes #1632
This commit is contained in:
parent
e3ed2547db
commit
dd5c5db142
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
* ============================================================ */
|
||||
|
||||
#include "registerqappassociation.h"
|
||||
#include "mainapplication.h"
|
||||
#include "browserwindow.h"
|
||||
|
||||
#include "ShlObj.h"
|
||||
#include <QMessageBox>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user