summaryrefslogtreecommitdiffabout
path: root/korganizer/searchdialog.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/searchdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/searchdialog.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp
index 2390520..0e9f64c 100644
--- a/korganizer/searchdialog.cpp
+++ b/korganizer/searchdialog.cpp
@@ -271,3 +271,2 @@ void SearchDialog::doSearch()
QRegExp re;
-
re.setWildcard(true); // most people understand these better.
@@ -320,8 +319,7 @@ void SearchDialog::updateView()
re.setPattern(st);
+ mMatchedEvents.clear();
+ mMatchedTodos.clear();
+ mMatchedJournals.clear();
if (re.isValid()) {
search(re);
- } else {
- mMatchedEvents.clear();
- mMatchedTodos.clear();
- mMatchedJournals.clear();
}