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:
hjk
2011-09-28 16:38:57 +02:00
committed by hjk
parent c3a294a1b0
commit 5cfc7bd582
2 changed files with 6 additions and 6 deletions

View File

@@ -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);