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

@@ -304,7 +304,7 @@ void BuildSettingsWidget::deleteConfiguration()
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;
deleteConfiguration(m_buildConfiguration);
@@ -333,7 +333,7 @@ void BuildSettingsWidget::renameConfiguration()
arg(m_buildConfiguration->displayName()),
QLineEdit::Normal,
m_buildConfiguration->displayName(), &ok);
if (!ok || !this)
if (!ok)
return;
name = uniqueName(name);