mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[Fix] Fixed occasional crash on terminating application.
This commit is contained in:
parent
3167a1a85d
commit
bff899ca5a
@ -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");
|
||||
|
@ -459,3 +459,8 @@ void NetworkManager::loadCertificates()
|
||||
|
||||
new CaBundleUpdater(this, this);
|
||||
}
|
||||
|
||||
void NetworkManager::disconnectObjects()
|
||||
{
|
||||
disconnect(this);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
// Header + Footer
|
||||
$site_title = "Капзила - Лаган мултиплатформски веб прегледач";
|
||||
$qupzilla = "Капзила";
|
||||
|
Loading…
Reference in New Issue
Block a user