forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0'
Change-Id: Ibe5040142ca38fed77ffed163212baf22592e392
This commit is contained in:
@@ -54,6 +54,12 @@ CMakeSpecificSettings::CMakeSpecificSettings()
|
||||
// never save this to the settings:
|
||||
ninjaPath.setToSettingsTransformation(
|
||||
[](const QVariant &) { return QVariant::fromValue(QString()); });
|
||||
ninjaPath.setFromSettingsTransformation([](const QVariant &from) {
|
||||
// Sometimes the installer appends the same ninja path to the qtcreator.ini file
|
||||
const QString path = from.canConvert<QStringList>() ? from.toStringList().last()
|
||||
: from.toString();
|
||||
return FilePath::fromUserInput(path).toVariant();
|
||||
});
|
||||
|
||||
packageManagerAutoSetup.setSettingsKey("PackageManagerAutoSetup");
|
||||
packageManagerAutoSetup.setDefaultValue(true);
|
||||
|
||||
Reference in New Issue
Block a user