Commit 5f745365 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

AbiWidget: Hide abi selection if list is empty



It only contains a single options "<custom>".

Change-Id: Ifad2ea8cabdba6f302de5b2d6d49cb0b042bf4a9
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 75ab24a9
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment