diff options
author | Milan Crha <mcrha@redhat.com> | 2012-08-31 19:13:22 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-08-31 19:13:22 +0800 |
commit | ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0 (patch) | |
tree | fb430eec3febd5575fc6363558e3517ca1890efc /calendar/gui/dialogs/comp-editor.c | |
parent | 350f7118fec5b5d7bcf6a6c40d2fba6bedaf512e (diff) | |
download | gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar.gz gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar.bz2 gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar.lz gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar.xz gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.tar.zst gsoc2013-evolution-ed81260ccf822b7f60497dfe8fde6eedbfdc2ae0.zip |
Bug #682678 - Entering the end date for a recurring event is very difficult
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 31fdf6f6b3..78505c2428 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -2626,14 +2626,17 @@ comp_editor_set_changed (CompEditor *editor, g_return_if_fail (IS_COMP_EDITOR (editor)); - if ((editor->priv->changed ? 1 : 0) == (changed ? 1 : 0)) - return; - - editor->priv->changed = changed; + /* always process below changes, because other parts of + the editor listen for 'changed' notifications to update + its widgets, thus do it even the value actually didn't change + */ + if ((editor->priv->changed ? 1 : 0) != (changed ? 1 : 0)) { + editor->priv->changed = changed; - action = comp_editor_get_action (editor, "save"); - g_return_if_fail (action != NULL); - gtk_action_set_sensitive (action, changed); + action = comp_editor_get_action (editor, "save"); + g_return_if_fail (action != NULL); + gtk_action_set_sensitive (action, changed); + } show_warning = changed && !editor->priv->warned && |