diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index 99d9cd381..ead211702 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -571,6 +571,7 @@ void MainApplication::quitApplication() } m_isClosing = true; + m_networkmanager->disconnectObjects(); if (m_mainWindows.count() > 0) { saveStateSlot(); @@ -588,6 +589,7 @@ void MainApplication::quitApplication() void MainApplication::saveSettings() { m_isClosing = true; + m_networkmanager->disconnectObjects(); Settings settings; settings.beginGroup("SessionRestore"); diff --git a/src/network/networkmanager.cpp b/src/network/networkmanager.cpp index 51560a3ab..615fe0e17 100644 --- a/src/network/networkmanager.cpp +++ b/src/network/networkmanager.cpp @@ -459,3 +459,8 @@ void NetworkManager::loadCertificates() new CaBundleUpdater(this, this); } + +void NetworkManager::disconnectObjects() +{ + disconnect(this); +} diff --git a/src/network/networkmanager.h b/src/network/networkmanager.h index b461ed6e1..361c817c1 100644 --- a/src/network/networkmanager.h +++ b/src/network/networkmanager.h @@ -45,6 +45,7 @@ public: explicit NetworkManager(QupZilla* mainClass, QObject* parent = 0); QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice* outgoingData); + void loadSettings(); void saveCertificates(); void loadCertificates(); @@ -60,7 +61,7 @@ public: void setIgnoreAllWarnings(bool state) { m_ignoreAllWarnings = state; } bool isIgnoringAllWarnings() { return m_ignoreAllWarnings; } - void loadSettings(); + void disconnectObjects(); signals: void finishLoading(bool state); diff --git a/translations/homepage/sr_RS.php b/translations/homepage/sr_RS.php index 16b9ed232..d1ff3c4d8 100644 --- a/translations/homepage/sr_RS.php +++ b/translations/homepage/sr_RS.php @@ -1,4 +1,4 @@ -