From eaa9491b6874743175c7b5f814872283df0b94be Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 25 Jul 2011 19:15:20 +0200 Subject: [PATCH] K-means dialog only should accept numeric variables --- src/ui/gui/k-means-dialog.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ui/gui/k-means-dialog.c b/src/ui/gui/k-means-dialog.c index 1de9b74c..0b2f00fa 100644 --- a/src/ui/gui/k-means-dialog.c +++ b/src/ui/gui/k-means-dialog.c @@ -113,14 +113,13 @@ k_means_dialog (PsppireDataWindow *dw) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (fd.de)); g_object_get (vs, "dictionary", &fd.dict, NULL); - g_object_set (source, "model", fd.dict, NULL); + g_object_set (source, "model", fd.dict, + "predicate", var_is_numeric, + NULL); psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog), dialog_state_valid, &fd); - psppire_selector_set_allow (PSPPIRE_SELECTOR (get_widget_assert (fd.xml, "psppire-selector1")), - numeric_only); - response = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); switch (response) -- 2.30.2