summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 19:23:23 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 19:23:23 (GMT)
commit9175663f216a85f7c81c8080adbab872c74b6bd4 (patch)
treec798994e10bc52bf0597ca40adc33e0e64bd7125
parent6c23f43ec314ea196c8a42682f91467778a67e54 (diff)
Fix regexpfilter matching with an empty regex
-rw-r--r--src/Filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Filter.cpp b/src/Filter.cpp
index 062a459..e261879 100644
--- a/src/Filter.cpp
+++ b/src/Filter.cpp
@@ -337,7 +337,7 @@ void RegExpFilter::process()
Q_ASSERT(text);
- if (!_searchText.isValid()) {
+ if (!_searchText.isValid() || _searchText.pattern().isEmpty()) {
return;
}