]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
Use KFileItem::text() instead of KFileItem::name().
[dolphin.git] / src / views / dolphinview.cpp
index 91d668e9d6bd8fa70d8e076f4d3b4bf9b77e5d1b..c5c13e97f4909db40c546d6c18234bf0d3d147e3 100644 (file)
@@ -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)