aboutsummaryrefslogtreecommitdiffstats
path: root/src/module/integrated/version_checking_module/VersionCheckTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/module/integrated/version_checking_module/VersionCheckTask.cpp')
-rw-r--r--src/module/integrated/version_checking_module/VersionCheckTask.cpp11
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");