forked from qt-creator/qt-creator
ProjectExplorer: Use default text when cloning build/run configuration
Change-Id: I520d1120b1f17522601e628eb2588eb2d0aee074 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -303,7 +303,11 @@ void BuildSettingsWidget::cloneConfiguration(BuildConfiguration *sourceConfigura
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//: Title of a the cloned BuildConfiguration window, text of the window
|
//: Title of a the cloned BuildConfiguration window, text of the window
|
||||||
QString name = uniqueName(QInputDialog::getText(this, tr("Clone Configuration"), tr("New configuration name:")));
|
QString name = uniqueName(QInputDialog::getText(this,
|
||||||
|
tr("Clone Configuration"),
|
||||||
|
tr("New configuration name:"),
|
||||||
|
QLineEdit::Normal,
|
||||||
|
m_buildConfiguration->displayName()));
|
||||||
if (name.isEmpty())
|
if (name.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -262,7 +262,12 @@ void RunSettingsWidget::cloneRunConfiguration()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//: Title of a the cloned RunConfiguration window, text of the window
|
//: Title of a the cloned RunConfiguration window, text of the window
|
||||||
QString name = uniqueRCName(QInputDialog::getText(this, tr("Clone Configuration"), tr("New configuration name:")));
|
QString name = uniqueRCName(
|
||||||
|
QInputDialog::getText(this,
|
||||||
|
tr("Clone Configuration"),
|
||||||
|
tr("New configuration name:"),
|
||||||
|
QLineEdit::Normal,
|
||||||
|
m_target->activeRunConfiguration()->displayName()));
|
||||||
if (name.isEmpty())
|
if (name.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user