From 93cc4808031cb45da9237dfc0c7759f668259331 Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Fri, 25 Nov 2011 16:02:49 +0100 Subject: Use KFileItem::text() instead of KFileItem::name(). This way Nepomuk search results get their proper user readable names. BUG: 287472 REVIEW: 103237 --- src/views/dolphinview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 91d668e9d..c5c13e97f 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -339,7 +339,7 @@ void DolphinView::setItemSelectionEnabled(const QRegExp& pattern, bool enabled) for (int index = 0; index < model->count(); index++) { const KFileItem item = model->fileItem(index); - if (pattern.exactMatch(item.name())) { + if (pattern.exactMatch(item.text())) { // An alternative approach would be to store the matching items in a QSet and // select them in one go after the loop, but we'd need a new function // KItemListSelectionManager::setSelected(QSet, SelectionMode mode) -- cgit v1.3