index config gui: adding a custom subtree would not make it the current one so that subsequently adding/changing parameters affected the global state, not the local one (except/until it was actually clicked)

This commit is contained in:
Jean-Francois Dockes 2012-02-03 16:08:37 +01:00
parent 6b24c3df6b
commit 773a232f22

View File

@ -410,7 +410,7 @@ void ConfParamDNLW::showInputDialog()
m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive);
if (m_lb->selectionMode() == QAbstractItemView::SingleSelection &&
!items.empty())
(*items.begin())->setSelected(TRUE);
m_lb->setCurrentItem(*items.begin());
listToConf();
}
}