From fb7b34cca56ee9882fc245592ee988d242a19101 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Fri, 18 Jul 2014 16:51:24 +0200 Subject: [PATCH] ProjectExplorer: Ask for the name of the clone runconfiguration Task-number: QTCREATORBUG-12447 Change-Id: Ib5c16d357c86cda4ceace0191727909dd032bf6c Reviewed-by: Eike Ziller --- src/plugins/projectexplorer/runsettingspropertiespage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.cpp b/src/plugins/projectexplorer/runsettingspropertiespage.cpp index 8bc97bc17f1..6e4c1dd7e57 100644 --- a/src/plugins/projectexplorer/runsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/runsettingspropertiespage.cpp @@ -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); }