Fix bug where recent data files were not added
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:43:58 +0000 (18:43 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:43:58 +0000 (18:43 +0200)
src/ui/gui/psppire-data-window.c

index 86c81853127cf032444cc11f7ad14b3458e00c7b..647d073bf993d7cebdf27d45332597492680dd5f 100644 (file)
@@ -387,7 +387,8 @@ load_file (PsppireWindow *de, const gchar *file_name)
   mime_type = (name_has_por_suffix (file_name)
                ? "application/x-spss-por"
                : "application/x-spss-sav");
-  add_most_recent (ds_cstr (&filename), mime_type);
+
+  add_most_recent (file_name, mime_type);
 
   return ok;
 }