gui: Make File|Open open multiple datasets by default.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 9 May 2011 04:17:51 +0000 (21:17 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 10 May 2011 04:34:22 +0000 (21:34 -0700)
This is what I always intended to make File|Open do, and in fact I
had implemented it that way, but I screwed up in rebasing and forgot
to fix it before my final push.

src/ui/gui/psppire-window.c

index 399b020b32cb3f767c6246c31538d5484143d493..8a33c006162b01fee477a777ff547d112f586ddb 100644 (file)
@@ -826,15 +826,11 @@ psppire_window_open (PsppireWindow *de)
           {
             PsppireWindow *window;
 
-#if 0
             if (PSPPIRE_IS_DATA_WINDOW (de)
                 && psppire_data_window_is_empty (PSPPIRE_DATA_WINDOW (de)))
               window = de;
             else
               window = PSPPIRE_WINDOW (psppire_data_window_new (NULL));
-#else
-            window = PSPPIRE_WINDOW (psppire_default_data_window ());
-#endif
 
             psppire_window_load (window, name);
             gtk_widget_show (GTK_WIDGET (window));