Fixes NB#107139, do not dim "Save button" if the wrong value for port is
authorSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 16:40:04 +0000 (16:40 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 16:40:04 +0000 (16:40 +0000)
replaced by the minimum

pmo-trunk-r8278

src/hildon2/modest-number-editor.c

index 2d9226a..57d1ada 100644 (file)
@@ -376,6 +376,7 @@ modest_number_editor_validate_value             (ModestNumberEditor *editor,
                modest_number_editor_set_value (editor, fixup_value);
                g_signal_emit (editor, ModestNumberEditor_signal[RANGE_ERROR], 0, error_code, &r);
                add_select_all_idle (editor);
                modest_number_editor_set_value (editor, fixup_value);
                g_signal_emit (editor, ModestNumberEditor_signal[RANGE_ERROR], 0, error_code, &r);
                add_select_all_idle (editor);
+               is_valid = modest_number_editor_is_valid (editor);
        }
 
        if (priv->is_valid != is_valid) {
        }
 
        if (priv->is_valid != is_valid) {