aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
},