From dcc7c9ed932ec2ef521aa04b929d0319f65c8bdc Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 25 Jun 2005 02:44:17 +0000 Subject: serach fix --- (limited to 'korganizer/searchdialog.cpp') diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index 2390520..0e9f64c 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp @@ -269,7 +269,6 @@ void SearchDialog::searchTextChanged( const QString &_text ) void SearchDialog::doSearch() { QRegExp re; - re.setWildcard(true); // most people understand these better. re.setCaseSensitive(false); QString st = searchEdit->text(); @@ -318,12 +317,11 @@ void SearchDialog::updateView() if ( st.right(1) != "*") st += "*"; re.setPattern(st); + mMatchedEvents.clear(); + mMatchedTodos.clear(); + mMatchedJournals.clear(); if (re.isValid()) { search(re); - } else { - mMatchedEvents.clear(); - mMatchedTodos.clear(); - mMatchedJournals.clear(); } listView->setStartDate( mStartDate->date() ); listView->showEvents(mMatchedEvents); -- cgit v0.9.0.2