Browse Source

fix(logging): check if version is stable before other checks

Because the other checks will exit the function before it reaches that if.
reviewable/pr6250/r2
powerjungle 5 years ago
parent
commit
0ee37a7a09
No known key found for this signature in database
GPG Key ID: 190C37B0F8665DA8
  1. 8
      src/net/updatecheck.cpp

8
src/net/updatecheck.cpp

@ -121,6 +121,10 @@ void UpdateCheck::checkForUpdate() @@ -121,6 +121,10 @@ void UpdateCheck::checkForUpdate()
void UpdateCheck::handleResponse(QNetworkReply* reply)
{
if (isCurrentVersionStable() == false) {
qWarning() << "qTox is running an unstable version";
}
assert(reply != nullptr);
if (reply == nullptr) {
qWarning() << "Update check returned null reply, ignoring";
@ -157,9 +161,5 @@ void UpdateCheck::handleResponse(QNetworkReply* reply) @@ -157,9 +161,5 @@ void UpdateCheck::handleResponse(QNetworkReply* reply)
emit upToDate();
}
if (isCurrentVersionStable() == false) {
qWarning() << "qTox is running an unstable version";
}
reply->deleteLater();
}

Loading…
Cancel
Save