|
a/src/qtgui/confgui/confgui.cpp |
|
b/src/qtgui/confgui/confgui.cpp |
|
... |
|
... |
408 |
m_lb->sortItems();
|
408 |
m_lb->sortItems();
|
409 |
QList<QListWidgetItem *>items =
|
409 |
QList<QListWidgetItem *>items =
|
410 |
m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive);
|
410 |
m_lb->findItems(s, Qt::MatchFixedString|Qt::MatchCaseSensitive);
|
411 |
if (m_lb->selectionMode() == QAbstractItemView::SingleSelection &&
|
411 |
if (m_lb->selectionMode() == QAbstractItemView::SingleSelection &&
|
412 |
!items.empty())
|
412 |
!items.empty())
|
413 |
(*items.begin())->setSelected(TRUE);
|
413 |
m_lb->setCurrentItem(*items.begin());
|
414 |
listToConf();
|
414 |
listToConf();
|
415 |
}
|
415 |
}
|
416 |
}
|
416 |
}
|
417 |
}
|
417 |
}
|
418 |
|
418 |
|