forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Orgad Shaneh
parent
75ab24a9fe
commit
5f745365f1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user