From 27ff4c59680d1b8ed6451b92a7538262243d7345 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Apr 2009 15:44:07 +0000 Subject: (do_search) suggest to switch to the 'all' view if there's no search results (#38461) --- NEWS | 1 + rpmdrake | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 19bff816..71cfae60 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ text anymore)), thus fixing #49035) - rpmdrake: o add a sensible tooltip for the "find" entry (#39454) + o suggest to switch to the 'all' view if there's no search results (#38461) Version 5.14 - 25 March 2009, Thierry Vignaud diff --git a/rpmdrake b/rpmdrake index df194e8c..82b46232 100755 --- a/rpmdrake +++ b/rpmdrake @@ -198,7 +198,10 @@ sub do_search($$$$$$$) { $iter = $options->{add_parent}->($results_none); # clear package list: $options->{add_nodes}->(); - statusbar_msg($results_none, 1); + my $string = $default_list_mode eq 'all' && $filter->[0] eq 'all' ? N("No search results.") : + N("No search results. You may want to switch to the '%s' view and to the '%s' filter", + N("All"), N("All"),); + statusbar_msg($string , 1); gtkset_mousecursor_normal($::w->{rwindow}->window); } my $tree_selection = $tree->get_selection; -- cgit v1.2.1