From: John Darrington Date: Mon, 23 Feb 2009 04:29:17 +0000 (+0900) Subject: Set the filename on loading a new file X-Git-Tag: v0.7.3~291 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b02111c7f12e9b974d5b456ee2ce516a72673861;p=pspp-builds.git Set the filename on loading a new file --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index e2fa7969..1afa9e6c 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -340,6 +340,8 @@ psppire_data_window_load_file (PsppireDataWindow *de, } psppire_window_set_unsaved (PSPPIRE_WINDOW (de), FALSE); + free (de->file_name); + de->file_name = g_strdup (file_name); } @@ -563,7 +565,7 @@ data_save_as_dialog (GtkAction *action, PsppireDataWindow *de) static void data_save (GtkAction *action, PsppireDataWindow *de) { - if ( de->file_name) + if (de->file_name) save_file (de); else data_save_as_dialog (action, de);