Commit f96e8e5a authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

search: also calculate checked items for a single match item

parent 12f1251a
...@@ -1536,7 +1536,7 @@ void KatePluginSearchView::updateResultsRootItem() ...@@ -1536,7 +1536,7 @@ void KatePluginSearchView::updateResultsRootItem()
return; return;
} }
int checkedItemCount = 0; int checkedItemCount = 0;
if (m_curResults->matches > 1) { if (m_curResults->matches > 0) {
for (QTreeWidgetItemIterator it(m_curResults->tree, QTreeWidgetItemIterator::Checked|QTreeWidgetItemIterator::NoChildren); for (QTreeWidgetItemIterator it(m_curResults->tree, QTreeWidgetItemIterator::Checked|QTreeWidgetItemIterator::NoChildren);
*it; ++it) *it; ++it)
{ {
......
Markdown is supported
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