From 3cf18ada6ee8cb074030d98f93b14cc7f4bcbbda Mon Sep 17 00:00:00 2001 From: saturneric Date: Tue, 23 Jan 2024 15:52:20 +0800 Subject: fix: set gpgconf path to gpgme engine --- .../integrated/version_checking_module/VersionCheckTask.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/module/integrated/version_checking_module/VersionCheckTask.cpp') diff --git a/src/module/integrated/version_checking_module/VersionCheckTask.cpp b/src/module/integrated/version_checking_module/VersionCheckTask.cpp index 34827838..8699b7b6 100644 --- a/src/module/integrated/version_checking_module/VersionCheckTask.cpp +++ b/src/module/integrated/version_checking_module/VersionCheckTask.cpp @@ -116,11 +116,16 @@ void VersionCheckTask::slot_parse_latest_version_info() { } void VersionCheckTask::slot_parse_current_version_info() { - if (current_reply_ == nullptr || - current_reply_->error() != QNetworkReply::NoError) { + if (current_reply_ == nullptr) { + // loading done + version_.loading_done = false; + return; + } + + if (current_reply_->error() != QNetworkReply::NoError) { if (current_reply_ != nullptr) { MODULE_LOG_ERROR("current version request network error: {}", - current_reply_->errorString().toStdString()); + current_reply_->errorString()); } else { MODULE_LOG_ERROR( "current version request network error, null reply object"); -- cgit v1.2.3