forked from qt-creator/qt-creator
Fix initial qtVersionsChanged signal
Change-Id: I9df9f158382f4ab7152130d7fb0ef9be311f12bd Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -136,7 +136,7 @@ QtVersionManager::QtVersionManager() :
|
|||||||
void QtVersionManager::extensionsInitialized()
|
void QtVersionManager::extensionsInitialized()
|
||||||
{
|
{
|
||||||
bool success = restoreQtVersions();
|
bool success = restoreQtVersions();
|
||||||
updateFromInstaller();
|
updateFromInstaller(false);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
// We did neither restore our settings or upgraded
|
// We did neither restore our settings or upgraded
|
||||||
// in that case figure out if there's a qt in path
|
// in that case figure out if there's a qt in path
|
||||||
@@ -144,6 +144,7 @@ void QtVersionManager::extensionsInitialized()
|
|||||||
findSystemQt();
|
findSystemQt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit qtVersionsChanged(m_versions.keys(), QList<int>(), QList<int>());
|
||||||
saveQtVersions();
|
saveQtVersions();
|
||||||
|
|
||||||
const Utils::FileName configFileName = globalSettingsFileName();
|
const Utils::FileName configFileName = globalSettingsFileName();
|
||||||
@@ -231,7 +232,7 @@ bool QtVersionManager::restoreQtVersions()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtVersionManager::updateFromInstaller()
|
void QtVersionManager::updateFromInstaller(bool emitSignal)
|
||||||
{
|
{
|
||||||
m_fileWatcherTimer->stop();
|
m_fileWatcherTimer->stop();
|
||||||
|
|
||||||
@@ -353,7 +354,8 @@ void QtVersionManager::updateFromInstaller()
|
|||||||
qDebug() << "";
|
qDebug() << "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit qtVersionsChanged(added, removed, changed);
|
if (emitSignal)
|
||||||
|
emit qtVersionsChanged(added, removed, changed);
|
||||||
saveQtVersions();
|
saveQtVersions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -109,7 +109,7 @@ public slots:
|
|||||||
void updateDumpFor(const Utils::FileName &qmakeCommand);
|
void updateDumpFor(const Utils::FileName &qmakeCommand);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateFromInstaller();
|
void updateFromInstaller(bool emitSignal = true);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// This function is really simplistic...
|
// This function is really simplistic...
|
||||||
|
Reference in New Issue
Block a user