Commit fb7b34cc authored by Daniel Teske's avatar Daniel Teske
Browse files

ProjectExplorer: Ask for the name of the clone runconfiguration



Task-number: QTCREATORBUG-12447
Change-Id: Ib5c16d357c86cda4ceace0191727909dd032bf6c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent dd11ef11
...@@ -332,11 +332,16 @@ void RunSettingsWidget::cloneRunConfiguration() ...@@ -332,11 +332,16 @@ void RunSettingsWidget::cloneRunConfiguration()
if (!factory) if (!factory)
return; 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); RunConfiguration *newRc = factory->clone(m_target, activeRunConfiguration);
if (!newRc) if (!newRc)
return; return;
newRc->setDisplayName(activeRunConfiguration->displayName()); newRc->setDisplayName(name);
m_target->addRunConfiguration(newRc); m_target->addRunConfiguration(newRc);
m_target->setActiveRunConfiguration(newRc); m_target->setActiveRunConfiguration(newRc);
} }
......
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