projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a8ad06
)
F10 in Search window
author
Colin Clark
<cclark@mcb.net>
Mon, 2 Jan 2017 10:13:57 +0000
(10:13 +0000)
committer
Colin Clark
<cclark@mcb.net>
Mon, 2 Jan 2017 10:13:57 +0000
(10:13 +0000)
If F10 is pressed when the search window is empty, Geeqie will crash.
Bug fix.
src/search.c
patch
|
blob
|
history
diff --git
a/src/search.c
b/src/search.c
index
070c418
..
b273759
100644
(file)
--- a/
src/search.c
+++ b/
src/search.c
@@
-1295,7
+1295,11
@@
static gboolean search_result_keypress_cb(GtkWidget *widget, GdkEventKey *event,
{
GtkWidget *menu;
- sd->click_fd = mfd->fd;
+ if (mfd)
+ sd->click_fd = mfd->fd;
+ else
+ sd->click_fd = NULL;
+
menu = search_result_menu(sd, (mfd != NULL), (search_result_count(sd, NULL) > 0));
gtk_menu_popup(GTK_MENU(menu), NULL, NULL,
search_result_menu_pos_cb, sd, 0, GDK_CURRENT_TIME);