Commit 3e9eb325 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix default names of configutation objects

Fix default names of project configuration objects on upgrades
from pre 2.0 creators.

Task-number: QTCREATORBUG-3143
parent 66bffd3d
......@@ -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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment