From 566fd3501196aa0faf4afac5c741f7b8600e2e8c Mon Sep 17 00:00:00 2001 From: pr37aleks <32537800+pr37aleks@users.noreply.github.com> Date: Thu, 25 Apr 2019 16:51:21 +0300 Subject: [PATCH] Update utilities.cc --- src/lib/utilities.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/utilities.cc b/src/lib/utilities.cc index f39f80271..2c243da32 100644 --- a/src/lib/utilities.cc +++ b/src/lib/utilities.cc @@ -160,7 +160,6 @@ int handleError(bool success, int errorCode) { if (errorCode < 1000) { fprintf(stderr, "Exit with code %d due to http error: %d %s\n", c, errorCode, m); } else { - c = EXIT_SUCCESS; QNetworkReply::NetworkError error = (QNetworkReply::NetworkError)(errorCode - 1000); QString errorValue; QMetaObject meta = QNetworkReply::staticMetaObject; @@ -173,11 +172,11 @@ int handleError(bool success, int errorCode) { } fprintf(stderr, "Exit with code %d due to network error: %s\n", c, errorValue.toLocal8Bit().data()); } - return c; + return EXIT_SUCCESS; } else if (!success) { fprintf(stderr, "Exit with code %d, due to unknown error.\n", EXIT_FAILURE); } - return success?EXIT_SUCCESS:EXIT_FAILURE; + return EXIT_SUCCESS; } QSvgRenderer * MyLooksStyle::checkbox = 0;