forked from qt-creator/qt-creator
CMakePM: Make "Build type" aspect visible
For single configuration projects if you change the build type aspect you will change the CMAKE_BUILD_TYPE variable. When switching the build directory the existing CMAKE_BUILD_TYPE will be set as build type aspect. Fixes: QTCREATORBUG-25451 Change-Id: I13519e95c316c556cc1348fba6121637d2fd4275 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -640,7 +640,7 @@ void StringAspect::setValue(const QString &val)
|
||||
void StringAspect::fromMap(const QVariantMap &map)
|
||||
{
|
||||
if (!settingsKey().isEmpty())
|
||||
BaseAspect::setValueQuietly(map.value(settingsKey()));
|
||||
BaseAspect::setValueQuietly(map.value(settingsKey(), defaultValue()));
|
||||
if (d->m_checker)
|
||||
d->m_checker->fromMap(map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user