From 1501da7e72787b3dc691d12a04992505171328ab Mon Sep 17 00:00:00 2001 From: fourtf Date: Mon, 24 Aug 2020 09:52:24 +0200 Subject: [PATCH] reverted update code to old state --- src/singletons/Updates.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/singletons/Updates.cpp b/src/singletons/Updates.cpp index acdecc901..496c508d6 100644 --- a/src/singletons/Updates.cpp +++ b/src/singletons/Updates.cpp @@ -268,8 +268,8 @@ void Updates::checkForUpdates() return Failure; } this->updateExe_ = updateExe_val.toString(); -#endif -#ifdef Q_OS_WIN + +# ifdef Q_OS_WIN /// Windows portable QJsonValue portable_val = object.value("portable_download"); if (!portable_val.isString()) @@ -279,15 +279,15 @@ void Updates::checkForUpdates() return Failure; } this->updatePortable_ = portable_val.toString(); -#endif -#ifdef Q_OS_LINUX +# endif + +#elif defined Q_OS_LINUX QJsonValue updateGuide_val = object.value("updateguide"); if (updateGuide_val.isString()) { this->updateGuideLink_ = updateGuide_val.toString(); } -#endif -#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !defined(Q_OS_LINUX) +#else return Failure; #endif