Commit 01bcf069 authored by Tim Jenssen's avatar Tim Jenssen
Browse files

fixed addNewVersionsFromInstaller, if there is no TimeStamp in GlobalSettings

 - if there is no LastQtVersionUpdate we doesn't have a real timestamp and we are not able to check against this.
 - this will happen during/after NDK installation

 Reviewed-by: Daniel Molkentin
parent e790363f
......@@ -311,7 +311,8 @@ void QtVersionManager::addNewVersionsFromInstaller()
QLatin1String("General/LastQtVersionUpdate")).toDateTime();
const QFileInfo gsFi(globalSettings->fileName());
if (!gsFi.exists() || (gsFi.lastModified() > lastUpdateFromGlobalSettings))
if ( !lastUpdateFromGlobalSettings.isNull() &&
(!gsFi.exists() || (gsFi.lastModified() > lastUpdateFromGlobalSettings)) )
return;
if (!globalSettings->contains(newQtVersionsKey) &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment