aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:29 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:29 +0000
commit6b8980e13f400ad0fe54b26118772504e8c607d7 (patch)
treea350f11c30a60aefc7e0f71d01b8c80b20e755ab
parentcc5a2f3b67d3c245b50a8ac69287731094ccf8b3 (diff)
downloadrpmdrake-6b8980e13f400ad0fe54b26118772504e8c607d7.tar
rpmdrake-6b8980e13f400ad0fe54b26118772504e8c607d7.tar.gz
rpmdrake-6b8980e13f400ad0fe54b26118772504e8c607d7.tar.bz2
rpmdrake-6b8980e13f400ad0fe54b26118772504e8c607d7.tar.xz
rpmdrake-6b8980e13f400ad0fe54b26118772504e8c607d7.zip
(run_treeview_dialog) clear search results too when cleaing searched text (#49239)
-rw-r--r--NEWS1
-rwxr-xr-xrpmdrake5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 09478e47..09bae279 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
o enable to apply priority updates without trying to select any
package
o search
+ * clear search results too when cleaing searched text (#49239)
* default to OR like searches for searches among package names (#37643)
* enable to disable use of regular expression (default is: disabled)
* enable to search in full or short package names (#46473)
diff --git a/rpmdrake b/rpmdrake
index fe134c15..91144d3b 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -677,7 +677,10 @@ sub run_treeview_dialog {
'icon-press' => sub {
my (undef, $pos, $event) = @_;
# emulate Sexy::IconEntry's clear_button:
- $find_entry->set_text('') if $pos eq 'secondary';
+ if ($pos eq 'secondary') {
+ $find_entry->set_text('');
+ reset_search();
+ }
return if $pos ne 'primary';
$search_menu->popup(undef, undef, undef, undef, $event->button, $event->time);
},