]> saetta.ns0.it Git - libgdaex/commitdiff
Bugfix.
authorAndrea Zagli <azagli@libero.it>
Sun, 8 May 2011 09:35:57 +0000 (11:35 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 8 May 2011 09:35:57 +0000 (11:35 +0200)
src/queryeditor.c

index a1433715b82c6a8482df47af19425adc329214db..39607ead0b294aae3ef5c2a9bbf254870c8a720d 100644 (file)
@@ -1612,6 +1612,11 @@ gdaex_query_editor_on_cb_where_type_changed (GtkComboBox *widget,
 
                        gtk_widget_set_visible (priv->lbl_txt2, where_type == GDAEX_QE_WHERE_TYPE_BETWEEN);
                        gtk_widget_set_visible (priv->txt2, where_type == GDAEX_QE_WHERE_TYPE_BETWEEN);
+
+                       if (where_type != GDAEX_QE_WHERE_TYPE_BETWEEN)
+                               {
+                                       gtk_entry_set_text (GTK_ENTRY (priv->txt2), "");
+                               }
                }
 }