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:
Orgad Shaneh
2013-01-08 21:49:43 +02:00
committed by Orgad Shaneh
parent 75ab24a9fe
commit 5f745365f1

View File

@@ -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.