Allow Find in Files when no items are selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5052 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
de29305a31
commit
aca9e894fc
@ -9,6 +9,8 @@
|
||||
Fix not loading plugins built against a newer API when Geany doesn't
|
||||
provide the required version given in PLUGIN_VERSION_CHECK().
|
||||
Improve documentation for PLUGIN_VERSION_CHECK().
|
||||
* plugins/filebrowser.c:
|
||||
Allow Find in Files when no items are selected.
|
||||
|
||||
|
||||
2010-06-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -544,7 +544,9 @@ static void on_find_in_files(GtkMenuItem *menuitem, gpointer user_data)
|
||||
gboolean is_dir = FALSE;
|
||||
|
||||
treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
|
||||
if (! check_single_selection(treesel))
|
||||
/* allow 0 or 1 selections */
|
||||
if (gtk_tree_selection_count_selected_rows(treesel) > 0 &&
|
||||
! check_single_selection(treesel))
|
||||
return;
|
||||
|
||||
list = gtk_tree_selection_get_selected_rows(treesel, &model);
|
||||
|
Loading…
x
Reference in New Issue
Block a user