CMake: Re-add RunConfiguration display name

Amends 6f04ca646 for QTCREATORBUG-19762?

Task-number: QTCREATORBUG-19954
Change-Id: I5da8bf15b5b62500fd0936d15451dfefd878b57b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2018-03-12 17:16:37 +01:00
parent 36132751ff
commit eece1be316

View File

@@ -144,6 +144,8 @@ bool CMakeRunConfiguration::fromMap(const QVariantMap &map)
CMakeProject *project = static_cast<CMakeProject *>(target()->project());
const CMakeBuildTarget ct = project->buildTargetForTitle(m_title);
extraAspect<WorkingDirectoryAspect>()->setDefaultWorkingDirectory(ct.workingDirectory);
setDefaultDisplayName(m_title);
}
return true;