Bug fix: Recent folder list max. size ignored
[geeqie.git] / src / history_list.c
index 9077903..eb624c4 100644 (file)
@@ -179,9 +179,6 @@ void image_chain_append_end(const gchar *path)
  *-----------------------------------------------------------------------------
  */
 
-#define HISTORY_DEFAULT_KEY_COUNT 16
-
-
 typedef struct _HistoryData HistoryData;
 struct _HistoryData
 {
@@ -414,7 +411,7 @@ void history_list_add_to_key(const gchar *key, const gchar *path, gint max)
 
        hd->list = g_list_prepend(hd->list, g_strdup(path));
 
-       if (max == -1) max = HISTORY_DEFAULT_KEY_COUNT;
+       if (max == -1) max = options->open_recent_list_maxsize;
        if (max > 0)
                {
                gint len = 0;