From: John Darrington Date: Fri, 1 Jul 2011 16:43:58 +0000 (+0200) Subject: Fix bug where recent data files were not added X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a331300d4c9deb96c3ca34cd1f470c762c8fad;p=pspp Fix bug where recent data files were not added --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index 86c8185312..647d073bf9 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -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; }