1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

Because the other checks will exit the function before it reaches that if.
This commit is contained in:
powerjungle 2020-11-15 15:23:50 +02:00
parent 90cc962802
commit 0ee37a7a09
No known key found for this signature in database
GPG Key ID: 190C37B0F8665DA8

View File

@ -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)
emit upToDate();
}
if (isCurrentVersionStable() == false) {
qWarning() << "qTox is running an unstable version";
}
reply->deleteLater();
}