diff options
| author | Sebastian Trueg <[email protected]> | 2011-11-25 16:02:49 +0100 |
|---|---|---|
| committer | Sebastian Trueg <[email protected]> | 2011-11-25 16:09:57 +0100 |
| commit | 93cc4808031cb45da9237dfc0c7759f668259331 (patch) | |
| tree | 7a0b457f40f7544d84e914c04f32f72fe494004e /src/views/dolphinview.cpp | |
| parent | 3950eccaf08374862ba848eac5319645d6a0f0d9 (diff) | |
Use KFileItem::text() instead of KFileItem::name().
This way Nepomuk search results get their proper user readable names.
BUG: 287472
REVIEW: 103237
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int> and // select them in one go after the loop, but we'd need a new function // KItemListSelectionManager::setSelected(QSet<int>, SelectionMode mode) |
