ProjectExplorer: Ask for the name of the clone runconfiguration

Task-number: QTCREATORBUG-12447
Change-Id: Ib5c16d357c86cda4ceace0191727909dd032bf6c
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Daniel Teske
2014-07-18 16:51:24 +02:00
parent dd11ef116f
commit fb7b34cca5

View File

@@ -332,11 +332,16 @@ void RunSettingsWidget::cloneRunConfiguration()
if (!factory)
return;
//: Title of a the cloned RunConfiguration window, text of the window
QString name = uniqueRCName(QInputDialog::getText(this, tr("Clone Configuration"), tr("New configuration name:")));
if (name.isEmpty())
return;
RunConfiguration *newRc = factory->clone(m_target, activeRunConfiguration);
if (!newRc)
return;
newRc->setDisplayName(activeRunConfiguration->displayName());
newRc->setDisplayName(name);
m_target->addRunConfiguration(newRc);
m_target->setActiveRunConfiguration(newRc);
}