QbsProjectManager: Fix build setting getting lost

If the user set some qbs property and also unchecked the "Use default
installation" box, the latter setting got lost on re-loading the build
step configuration.

Task-number: QTCREATORBUG-18895
Change-Id: I868312fbbd8e5ca9ad9f34b88866fe7b72884a9a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Christian Kandeler
2017-10-06 16:49:47 +02:00
parent 35689db652
commit f93a55ac5c

View File

@@ -780,6 +780,9 @@ void QbsBuildStepConfigWidget::applyCachedProperties()
if (tmp.contains(Constants::QBS_CONFIG_QUICK_DEBUG_KEY))
data.insert(Constants::QBS_CONFIG_QUICK_DEBUG_KEY,
tmp.value(Constants::QBS_CONFIG_QUICK_DEBUG_KEY));
if (tmp.contains(Constants::QBS_INSTALL_ROOT_KEY))
data.insert(Constants::QBS_INSTALL_ROOT_KEY,
tmp.value(Constants::QBS_INSTALL_ROOT_KEY));
for (int i = 0; i < m_propertyCache.count(); ++i) {
const Property &property = m_propertyCache.at(i);