Bug fix #934: Request to add image bookmarking/tagging within a folder
[geeqie.git] / src / history_list.c
index d9770bc..e96b53f 100644 (file)
@@ -556,7 +556,10 @@ gchar *get_recent_viewed_folder_image(gchar *path)
 
                if (g_strcmp0(dirname, path) == 0)
                        {
-                       ret = g_strdup(work->data);
+                       if (isfile(work->data))
+                               {
+                               ret = g_strdup(work->data);
+                               }
                        g_free(dirname);
                        break;
                        }