forked from qt-creator/qt-creator
projectexplorer: this is never 0
Change-Id: I3245a7d46bc29480b3d8029e79f7b8fcb359ea90 Reviewed-on: http://codereview.qt-project.org/5737 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -233,7 +233,7 @@ void RunSettingsWidget::removeRunConfiguration()
|
||||
QMessageBox::Yes|QMessageBox::No, this);
|
||||
msgBox.setDefaultButton(QMessageBox::No);
|
||||
msgBox.setEscapeButton(QMessageBox::No);
|
||||
if (!this || msgBox.exec() == QMessageBox::No)
|
||||
if (msgBox.exec() == QMessageBox::No)
|
||||
return;
|
||||
|
||||
m_target->removeRunConfiguration(rc);
|
||||
@@ -260,7 +260,7 @@ void RunSettingsWidget::renameRunConfiguration()
|
||||
arg(m_target->activeRunConfiguration()->displayName()),
|
||||
QLineEdit::Normal,
|
||||
m_target->activeRunConfiguration()->displayName(), &ok);
|
||||
if (!ok || !this)
|
||||
if (!ok)
|
||||
return;
|
||||
|
||||
name = uniqueRCName(name);
|
||||
@@ -329,7 +329,7 @@ void RunSettingsWidget::removeDeployConfiguration()
|
||||
QMessageBox::Yes|QMessageBox::No, this);
|
||||
msgBox.setDefaultButton(QMessageBox::No);
|
||||
msgBox.setEscapeButton(QMessageBox::No);
|
||||
if (!this || msgBox.exec() == QMessageBox::No)
|
||||
if (msgBox.exec() == QMessageBox::No)
|
||||
return;
|
||||
|
||||
m_target->removeDeployConfiguration(dc);
|
||||
@@ -349,7 +349,7 @@ void RunSettingsWidget::renameDeployConfiguration()
|
||||
arg(m_target->activeDeployConfiguration()->displayName()),
|
||||
QLineEdit::Normal,
|
||||
m_target->activeDeployConfiguration()->displayName(), &ok);
|
||||
if (!ok || !this)
|
||||
if (!ok)
|
||||
return;
|
||||
|
||||
name = uniqueDCName(name);
|
||||
|
||||
Reference in New Issue
Block a user