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