diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-01-08 21:49:43 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-01-09 11:06:22 +0100 |
commit | 5f745365f1af9783631cb68cc8f91f1fcdd90391 (patch) | |
tree | c4b540ae67f107df7d83def928b61e862a4c66a4 /src/plugins/projectexplorer/abiwidget.cpp | |
parent | 75ab24a9fe103e4b7c48fcd74c153c5934848390 (diff) | |
download | qt-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.cpp | 1 |
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 ¤t) 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. |