Skip to content

Commit 366d1d1

Browse files
committed
CFileSearchEngine bug fixed
1 parent 19e44d2 commit 366d1d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

file-commander-core/src/filesearchengine/cfilesearchengine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ void CFileSearchEngine::searchThread(const QString& what, bool subjectCaseSensit
141141
}, uniqueJobTag);
142142
}
143143

144+
if (searchByContents && !item.isFile())
145+
return;
146+
144147
const bool nameMatches = noFileNameFilter || queryRegExp.match(item.fullName()).hasMatch();
145148

146149
if (!nameMatches)

0 commit comments

Comments
 (0)