Update OnlineUpdater.cpp
This commit is contained in:
parent
2d500776dc
commit
1061014add
|
@ -352,10 +352,12 @@ bool COnlineUpdater::IsVersionNewer(const QString& VersionStr)
|
|||
void COnlineUpdater::CheckPendingUpdate()
|
||||
{
|
||||
QString VersionStr = theConf->GetString("Options/PendingUpdateVersion");
|
||||
if (!IsVersionNewer(VersionStr)) {
|
||||
bool bIsNewVersion = IsVersionNewer(VersionStr);
|
||||
if (!bIsNewVersion)
|
||||
theConf->DelValue("Options/PendingUpdateVersion");
|
||||
QString FilePath = theConf->GetString("Options/PendingUpdatePackage");
|
||||
if (!bIsNewVersion || !QFile::exists(FilePath))
|
||||
theConf->DelValue("Options/PendingUpdatePackage");
|
||||
}
|
||||
}
|
||||
|
||||
void COnlineUpdater::DownloadUpdate()
|
||||
|
|
Loading…
Reference in New Issue