summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index b850497..b0e9862 100644
--- a/src/events.c
+++ b/src/events.c
@@ -251,7 +251,8 @@ static void feh_event_handle_ButtonRelease(XEvent * ev)
thumbwin = winwidget_create_from_file(
gib_list_add_front(NULL, thumbfile),
s, WIN_TYPE_THUMBNAIL_VIEWER);
- winwidget_show(thumbwin);
+ if (thumbwin)
+ winwidget_show(thumbwin);
} else if (FEH_FILE(thumbwin->file->data) != thumbfile) {
free(thumbwin->file);
thumbwin->file = gib_list_add_front(NULL, thumbfile);