author | zautrix <zautrix> | 2005-06-24 15:47:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-24 15:47:50 (UTC) |
commit | 3dbc82b2711811450b77b85a5fd85744a61d0a2c (patch) (side-by-side diff) | |
tree | 5de54644cd84669544168ed3f56dec0c546d3be3 /korganizer | |
parent | e5ddfdabaf6f0e72caa0215c8896e104c7d74cc3 (diff) | |
download | kdepimpi-3dbc82b2711811450b77b85a5fd85744a61d0a2c.zip kdepimpi-3dbc82b2711811450b77b85a5fd85744a61d0a2c.tar.gz kdepimpi-3dbc82b2711811450b77b85a5fd85744a61d0a2c.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/searchdialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index a8de297..0713980 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp @@ -552,25 +552,31 @@ void SearchDialog::search(const QRegExp &re) if (re.match(journ->description()) != -1) #endif { if ( mSubItems->isChecked() ) mMatchedJournals.remove(journ); else if (!mMatchedJournals.contains( journ )) mMatchedJournals.append(journ); continue; } } } } - + if ( mMatchedEvents.count() + mMatchedJournals.count() + mMatchedTodos.count() < 1 ) { + qDebug("count %d ", mMatchedEvents.count() + mMatchedJournals.count() + mMatchedTodos.count() ); + if ( mRefineItems->isChecked() ) + mRefineItems->setChecked( false ); + else if ( mSubItems->isChecked() ) + mSubItems->setChecked( false ); + } } void SearchDialog::keyPressEvent ( QKeyEvent *e) { switch ( e->key() ) { case Qt::Key_Escape: close(); break; case Qt::Key_F: if ( e->state() == Qt::ControlButton ) { } |