From 7bad9d1701487a8382f2fcbe30a394e0e4c4bbff Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 6 Sep 2017 07:42:40 +0200 Subject: [PATCH] Fix "New update". --- src/main.cpp | 4 ++-- src/miscellaneous/systemfactory.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 379304b01..6947567bb 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -139,8 +139,8 @@ int main(int argc, char* argv[]) { QObject::connect(qApp->system(), &SystemFactory::updatesChecked, [](QPair, QNetworkReply::NetworkError> updates) { QObject::disconnect(qApp->system(), &SystemFactory::updatesChecked, nullptr, nullptr); - if (!updates.first.isEmpty() && updates.second == QNetworkReply::NoError && - !SystemFactory::isVersionNewer(updates.first.at(0).m_availableVersion, APP_VERSION)) { + if (!updates.first.isEmpty() && updates.second == QNetworkReply::NoError && + SystemFactory::isVersionNewer(updates.first.at(0).m_availableVersion, APP_VERSION)) { qApp->showGuiMessage(QObject::tr("New version available"), QObject::tr("Click the bubble for more information."), QSystemTrayIcon::Information, qApp->mainForm(), false, diff --git a/src/miscellaneous/systemfactory.cpp b/src/miscellaneous/systemfactory.cpp index 1d347cad8..4491ce0ec 100755 --- a/src/miscellaneous/systemfactory.cpp +++ b/src/miscellaneous/systemfactory.cpp @@ -216,7 +216,7 @@ void SystemFactory::checkForUpdates() const { emit updatesChecked(result); downloader->deleteLater(); - }); + }); downloader->downloadFile(RELEASES_LIST); }