Skip to content

Commit

Permalink
F10 in Search window
Browse files Browse the repository at this point in the history
If F10 is pressed when the search window is empty, Geeqie will crash.
Bug fix.
  • Loading branch information
Colin Clark committed Jan 2, 2017
1 parent 0a8ad06 commit 113b1fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 113b1fe

Please sign in to comment.