1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[Preferences] Lazy reload of MainApp preferences

Re-setting user stylesheet with a lot of AdBlock hiding rules
takes quite some time for QtWebKitSettings.
This commit is contained in:
nowrep 2014-01-18 11:41:08 +01:00
parent c026594175
commit 354b9d1695
2 changed files with 3 additions and 2 deletions

View File

@ -424,7 +424,8 @@ void MainApplication::loadSettings()
void MainApplication::reloadSettings() void MainApplication::reloadSettings()
{ {
loadSettings(); QTimer::singleShot(0, this, SLOT(loadSettings()));
emit message(Qz::AM_ReloadSettings, true); emit message(Qz::AM_ReloadSettings, true);
} }

View File

@ -72,7 +72,6 @@ public:
~MainApplication(); ~MainApplication();
void connectDatabase(); void connectDatabase();
void loadSettings();
void reloadSettings(); void reloadSettings();
bool restoreStateSlot(QupZilla* window, RestoreData recoveryData); bool restoreStateSlot(QupZilla* window, RestoreData recoveryData);
QupZilla* makeNewWindow(Qz::BrowserWindow type, const QUrl &startUrl = QUrl()); QupZilla* makeNewWindow(Qz::BrowserWindow type, const QUrl &startUrl = QUrl());
@ -152,6 +151,7 @@ signals:
void message(Qz::AppMessageType mes, bool state); void message(Qz::AppMessageType mes, bool state);
private slots: private slots:
void loadSettings();
void postLaunch(); void postLaunch();
void setupJumpList(); void setupJumpList();
void restoreCursor(); void restoreCursor();