forked from qt-creator/qt-creator
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:
@@ -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) &&
|
||||
|
Reference in New Issue
Block a user