Commit 2bbb3d46 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Let the backend reload the real value if one was rejected by a verify function

parent 886ab249
......@@ -123,12 +123,8 @@ glade_editor_property_commit_common (GladeEditorProperty * eprop,
/* If the value was denied by a verify function, we'll have to
* reload the real value.
if (glade_property_equals_value (eprop->priv->property, value))
if (!glade_property_equals_value (eprop->priv->property, value))
glade_editor_property_load (eprop, eprop->priv->property);
/* publish a value change to those interested */
g_signal_emit (G_OBJECT (eprop), glade_eprop_signals[CHANGED], 0,
......@@ -3392,9 +3388,6 @@ glade_editor_property_load (GladeEditorProperty * eprop,
g_return_if_fail (GLADE_IS_EDITOR_PROPERTY (eprop));
g_return_if_fail (property == NULL || GLADE_IS_PROPERTY (property));
if (eprop->priv->committing)
eprop->priv->loading = TRUE;
GLADE_EDITOR_PROPERTY_GET_CLASS (eprop)->load (eprop, property);
eprop->priv->loading = FALSE;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment