fixed crash with float file list and geeqie --blank
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 12 Aug 2008 20:21:25 +0000 (20:21 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 12 Aug 2008 20:21:25 +0000 (20:21 +0000)
src/layout.c

index cb08412..81bdc98 100644 (file)
@@ -1589,7 +1589,7 @@ void layout_style_set(LayoutWindow *lw, gint style, const gchar *order)
        layout_image_full_screen_stop(lw);
 
        dir_fd = lw->dir_fd;
-       file_data_unregister_real_time_monitor(lw->dir_fd);
+       if (dir_fd) file_data_unregister_real_time_monitor(dir_fd);
        lw->dir_fd = NULL;
        lw->image = NULL;
        lw->utility_box = NULL;