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

[Fix] Fixed occasional crash on terminating application.

This commit is contained in:
nowrep 2012-01-15 17:50:09 +01:00
parent 3167a1a85d
commit bff899ca5a
4 changed files with 10 additions and 2 deletions

View File

@ -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");

View File

@ -459,3 +459,8 @@ void NetworkManager::loadCertificates()
new CaBundleUpdater(this, this);
}
void NetworkManager::disconnectObjects()
{
disconnect(this);
}

View File

@ -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);

View File

@ -1,4 +1,4 @@
<?php
<?php
// Header + Footer
$site_title = "Капзила - Лаган мултиплатформски веб прегледач";
$qupzilla = "Капзила";