From: Andrea Zagli Date: Sat, 3 Jun 2017 09:36:06 +0000 (+0200) Subject: Bugfix: wrong value test. X-Git-Tag: v0.1.0~1^2~4 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=14d4e1bb43f5c71a6c6d811a8e5a5427d029c68b;p=zakform%2Fgtk Bugfix: wrong value test. --- diff --git a/src/formelementradio.c b/src/formelementradio.c index e6ddbdc..52b4c00 100644 --- a/src/formelementradio.c +++ b/src/formelementradio.c @@ -252,8 +252,8 @@ static GValue while (group != NULL) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (group->data))) - { - if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") == NULL) + {; + if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") != NULL) { g_value_set_string (ret, (gchar *)g_object_get_data (G_OBJECT (group->data), "return-value")); }