Don't allow string variables in ROC dialog as dependent variable
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 14 Dec 2009 18:51:16 +0000 (19:51 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 14 Dec 2009 18:51:16 +0000 (19:51 +0100)
src/ui/gui/roc-dialog.c

index 4d1a7d30b18ad435bf2b54decf5b755f48237269..cf0a831f812edbe3171e4a85220ba8f26b38e215 100644 (file)
@@ -155,6 +155,9 @@ roc_dialog (GObject *o, gpointer data)
   psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog),
                                      dialog_state_valid, &rd);
 
+  psppire_selector_set_allow (PSPPIRE_SELECTOR (get_widget_assert (xml, "dep-selector")),
+                             numeric_only);
+
   response = psppire_dialog_run (PSPPIRE_DIALOG (dialog));
 
   switch (response)