From 3d8c8f3c4550d88d1bb16bda003c88fc69e6acc5 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Mon, 19 Jul 2021 18:03:21 +0800 Subject: Improved and Modified. --- src/ui/help/AboutDialog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/help/AboutDialog.cpp') diff --git a/src/ui/help/AboutDialog.cpp b/src/ui/help/AboutDialog.cpp index 4c9b54c9..807c509d 100644 --- a/src/ui/help/AboutDialog.cpp +++ b/src/ui/help/AboutDialog.cpp @@ -181,6 +181,13 @@ void UpdateTab::getLatestVersion() { this->pb->setHidden(true); + if(replay->error() != QNetworkReply::NoError) { + qDebug() << "VersionCheckThread Found Network Error"; + auto latestVersion = "Unknown"; + latestVersionLabel->setText("
" + tr("Latest Version From Github: ") + latestVersion + "
"); + return; + } + QByteArray bytes = replay->readAll(); Document d; -- cgit v1.2.3