1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +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()
{
loadSettings();
QTimer::singleShot(0, this, SLOT(loadSettings()));
emit message(Qz::AM_ReloadSettings, true);
}

View File

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