forked from qt-creator/qt-creator
Fix crash when changing a kit in project settings
Change-Id: Ib584cb5d6d1d3802f3a21b741b560ace78722b9a Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -182,7 +182,8 @@ void IRunConfigurationAspect::toMap(QVariantMap &map) const
|
||||
IRunConfigurationAspect *IRunConfigurationAspect::clone(RunConfiguration *parent) const
|
||||
{
|
||||
IRunConfigurationAspect *other = create(parent);
|
||||
other->m_projectSettings = m_projectSettings->clone();
|
||||
if (m_projectSettings)
|
||||
other->m_projectSettings = m_projectSettings->clone();
|
||||
other->m_globalSettings = m_globalSettings;
|
||||
other->m_useGlobalSettings = m_useGlobalSettings;
|
||||
return other;
|
||||
|
||||
Reference in New Issue
Block a user