forked from qt-creator/qt-creator
Allow build to specify different settings path.
Task-number: QTCREATORBUG-5509 Change-Id: I4541049a1861e83f55106effc536fd50eb233d97 Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
@@ -206,8 +206,8 @@ void QtVersionManager::updateFromInstaller()
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
QList<QtVersionFactory *> factories = pm->getObjects<QtVersionFactory>();
|
||||
Utils::PersistentSettingsReader reader;
|
||||
if (!reader.load(Core::ICore::instance()->resourcePath()
|
||||
+ QLatin1String("/Nokia") + QLatin1String(QTVERSION_FILENAME)))
|
||||
if (!reader.load(QFileInfo(pm->globalSettings()->fileName()).absolutePath()
|
||||
+ QLatin1String(QTVERSION_FILENAME)))
|
||||
return;
|
||||
|
||||
QVariantMap data = reader.restoreValues();
|
||||
|
||||
Reference in New Issue
Block a user