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:
parent
90cc962802
commit
0ee37a7a09
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user