Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/lib/utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down