summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/abiwidget.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-01-08 21:49:43 +0200
committerOrgad Shaneh <orgads@gmail.com>2013-01-09 11:06:22 +0100
commit5f745365f1af9783631cb68cc8f91f1fcdd90391 (patch)
treec4b540ae67f107df7d83def928b61e862a4c66a4 /src/plugins/projectexplorer/abiwidget.cpp
parent75ab24a9fe103e4b7c48fcd74c153c5934848390 (diff)
downloadqt-creator-5f745365f1af9783631cb68cc8f91f1fcdd90391.tar.gz
AbiWidget: Hide abi selection if list is empty
It only contains a single options "<custom>". Change-Id: Ifad2ea8cabdba6f302de5b2d6d49cb0b042bf4a9 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/abiwidget.cpp')
-rw-r--r--src/plugins/projectexplorer/abiwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/abiwidget.cpp b/src/plugins/projectexplorer/abiwidget.cpp
index 5bbf95e23d..fd9de56de1 100644
--- a/src/plugins/projectexplorer/abiwidget.cpp
+++ b/src/plugins/projectexplorer/abiwidget.cpp
@@ -157,6 +157,7 @@ void AbiWidget::setAbis(const QList<Abi> &abiList, const Abi &current)
d->m_abi->setCurrentIndex(i + 1);
}
+ d->m_abi->setVisible(!abiList.isEmpty());
if (d->m_abi->currentIndex() == 0) {
if (!current.isValid() && !abiList.isEmpty())
d->m_abi->setCurrentIndex(1); // default to the first Abi if none is selected.