[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: patch: kfind #39655
From: Daniel Naber <daniel.naber () t-online ! de>
Date: 2002-03-30 13:55:48
[Download RAW message or body]
Hi,
this patch fixes #39655 (nothing found if no filename given). Can I apply
to both HEAD and 3.0 branch?
Regards
Daniel
--
http://www.danielnaber.de
["kfind_no_filename.diff" (text/x-diff)]
Index: kftabdlg.cpp
===================================================================
RCS file: /home/kde/kdebase/kfind/kftabdlg.cpp,v
retrieving revision 1.64
diff -u -r1.64 kftabdlg.cpp
--- kftabdlg.cpp 2002/03/05 13:33:10 1.64
+++ kftabdlg.cpp 2002/03/30 13:53:20
@@ -432,7 +432,8 @@
if (!itemAlreadyContained)
dirBox->insertItem(dirBox->currentText().stripWhiteSpace(),0);
- query->setRegExp(nameBox->currentText(), caseSensCb->isChecked());
+ QString regex = nameBox->currentText().isEmpty() ? "*" : nameBox->currentText();
+ query->setRegExp(regex, caseSensCb->isChecked());
itemAlreadyContained=false;
for (int idx=0; idx<nameBox->count(); idx++)
if (nameBox->text(idx)==nameBox->currentText())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic