forked from qt-creator/qt-creator
Remove one messagebox when removing a buildconfiguration
Since the user is asked twice atm. Change-Id: I07221c47ab96bd9881d611cc2070ef43333cd2a0 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -299,14 +299,6 @@ void BuildSettingsWidget::cloneConfiguration()
|
||||
|
||||
void BuildSettingsWidget::deleteConfiguration()
|
||||
{
|
||||
QMessageBox msgBox(QMessageBox::Question, tr("Remove Build Configuration"),
|
||||
tr("Do you really want to delete the build configuration <b>%1</b>?").arg(m_buildConfiguration->displayName()),
|
||||
QMessageBox::Yes|QMessageBox::No, this);
|
||||
msgBox.setDefaultButton(QMessageBox::No);
|
||||
msgBox.setEscapeButton(QMessageBox::No);
|
||||
if (msgBox.exec() == QMessageBox::No)
|
||||
return;
|
||||
|
||||
deleteConfiguration(m_buildConfiguration);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user