From: Friedrich Beckmann Date: Sun, 7 Jun 2020 09:49:05 +0000 (+0200) Subject: fixed wrong goto case after opening .sav file X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87be5e048294611f220c0730b97565407c4ad568;p=pspp fixed wrong goto case after opening .sav file When a .sav file was openend, then a wrong "goto case" option is visible in the variable view. With this fix you can open a new dataset via the file browser and the correct menu is shown. --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index c06502f203..84014ef05b 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -2019,12 +2019,10 @@ open_data_window (PsppireWindow *victim, const char *file_name, && psppire_data_window_is_empty (PSPPIRE_DATA_WINDOW (victim))) { window = GTK_WIDGET (victim); - gtk_widget_hide (GTK_WIDGET (PSPPIRE_DATA_WINDOW (window)->data_editor)); } else window = psppire_data_window_new (NULL); psppire_window_load (PSPPIRE_WINDOW (window), file_name, encoding, hint); - gtk_widget_show_all (window); return GTK_WINDOW (window); }