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
This commit is contained in:
Tim Jenssen
2010-01-18 11:24:48 +01:00
parent e790363fda
commit 01bcf0694b

View File

@@ -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) &&