gui: Fix Glib-GObject-WARNING when closing the active dataset.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 9 Jul 2012 05:12:49 +0000 (22:12 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 9 Jul 2012 05:12:49 +0000 (22:12 -0700)
commit7e152a7394dd2325e9040dd59cc5bba6d4b9dde5
tree634cfb8de59e6fcab431a354ad4f1f026e5ca57a
parentd8425a93fe6acff92dabff8e5fdace9e9138fc3b
gui: Fix Glib-GObject-WARNING when closing the active dataset.

The DATASET CLOSE command, when it acts on the active dataset, just
removes the active dataset's name, changing it to the empty string.
(This is the documented behavior.)  However, the GUI relies on
every dataset having a name, so this caused the following warning:

GLib-GObject-WARNING **: value """" of type `gchararray' is invalid
or out of range for property `id' of type `gchararray'

This commit fixes the problem by giving any unnamed dataset a name
after running syntax.
src/data/session.c
src/data/session.h
src/ui/gui/executor.c
src/ui/gui/psppire-data-window.c