diff options
author | saturneric <[email protected]> | 2024-01-23 07:52:20 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-23 07:52:20 +0000 |
commit | 3cf18ada6ee8cb074030d98f93b14cc7f4bcbbda (patch) | |
tree | b5060560dfcf6627b5779f34ae67dfee49853953 /src/module/integrated/version_checking_module/VersionCheckTask.cpp | |
parent | fix: solve issues on detected gnupg path function and fix linking errors on w... (diff) | |
download | GpgFrontend-3cf18ada6ee8cb074030d98f93b14cc7f4bcbbda.tar.gz GpgFrontend-3cf18ada6ee8cb074030d98f93b14cc7f4bcbbda.zip |
fix: set gpgconf path to gpgme engine
Diffstat (limited to 'src/module/integrated/version_checking_module/VersionCheckTask.cpp')
-rw-r--r-- | src/module/integrated/version_checking_module/VersionCheckTask.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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"); |