From 773a232f223d8d28406e59badf6be739bab5c501 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 3 Feb 2012 16:08:37 +0100 Subject: [PATCH] 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) --- src/qtgui/confgui/confgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtgui/confgui/confgui.cpp b/src/qtgui/confgui/confgui.cpp index 4cc4c71e..69fcf740 100644 --- a/src/qtgui/confgui/confgui.cpp +++ b/src/qtgui/confgui/confgui.cpp @@ -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(); } }