diff --git a/src/plugins/projectexplorer/projectconfiguration.cpp b/src/plugins/projectexplorer/projectconfiguration.cpp index fb27a64b368be302644327e80c9500245111fa32..18118c72f2cb9af7a2434bab98646cb6f0fd77ee 100644 --- a/src/plugins/projectexplorer/projectconfiguration.cpp +++ b/src/plugins/projectexplorer/projectconfiguration.cpp @@ -99,7 +99,9 @@ bool ProjectConfiguration::fromMap(const QVariantMap &map) { m_id = map.value(QLatin1String(CONFIGURATION_ID_KEY), QString()).toString(); m_displayName = map.value(QLatin1String(DISPLAY_NAME_KEY), QString()).toString(); - m_defaultDisplayName = map.value(QLatin1String(DEFAULT_DISPLAY_NAME_KEY), m_displayName).toString(); + m_defaultDisplayName = map.value(QLatin1String(DEFAULT_DISPLAY_NAME_KEY), + m_defaultDisplayName.isEmpty() ? + m_displayName : m_defaultDisplayName).toString(); return !m_id.isEmpty(); }