diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-09-08 21:33:08 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-09-08 21:33:08 (GMT) |
commit | ad42eb33b61ad262315bfa087dc7f4f0ddbca5fe (patch) | |
tree | fe9f05886764621f7b80b693baec69e98f8b11d3 /Source/QtDialog | |
parent | f506489d1ed222761f9ce752144a458290020e55 (diff) | |
download | CMake-ad42eb33b61ad262315bfa087dc7f4f0ddbca5fe.zip CMake-ad42eb33b61ad262315bfa087dc7f4f0ddbca5fe.tar.gz CMake-ad42eb33b61ad262315bfa087dc7f4f0ddbca5fe.tar.bz2 |
QCMakeCacheView: no else after return
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 88ea049..ec7918b 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -554,14 +554,16 @@ QWidget* QCMakeCacheModelDelegate::createEditor( QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this, SLOT(setFileDialogFlag(bool))); return editor; - } else if (type == QCMakeProperty::FILEPATH) { + } + if (type == QCMakeProperty::FILEPATH) { QCMakeFilePathEditor* editor = new QCMakeFilePathEditor(p, var.data(Qt::DisplayRole).toString()); QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this, SLOT(setFileDialogFlag(bool))); return editor; - } else if (type == QCMakeProperty::STRING && - var.data(QCMakeCacheModel::StringsRole).isValid()) { + } + if (type == QCMakeProperty::STRING && + var.data(QCMakeCacheModel::StringsRole).isValid()) { QCMakeComboBox* editor = new QCMakeComboBox( p, var.data(QCMakeCacheModel::StringsRole).toStringList()); editor->setFrame(false); |