[evolution/wip/webkit2] [ECompEditor] Always enable the editor after the save is complete



commit df01530aca199a14d63f716636459147b7b648d8
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 10 17:19:44 2015 +0100

    [ECompEditor] Always enable the editor after the save is complete
    
    It doesn't matter whether the save was successful or not, the editor
    should be kept disabled only for the save time and not any longer.

 calendar/gui/e-comp-editor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-comp-editor.c b/calendar/gui/e-comp-editor.c
index e37d5b1..248f6b0 100644
--- a/calendar/gui/e-comp-editor.c
+++ b/calendar/gui/e-comp-editor.c
@@ -323,6 +323,8 @@ static void
 save_data_free (SaveData *sd)
 {
        if (sd) {
+               e_comp_editor_enable (sd->comp_editor, TRUE);
+
                if (sd->success) {
                        if (sd->close_after_save) {
                                g_signal_emit (sd->comp_editor, signals[EDITOR_CLOSED], 0, TRUE, NULL);
@@ -330,7 +332,6 @@ save_data_free (SaveData *sd)
                        } else {
                                e_comp_editor_set_component (sd->comp_editor, sd->component);
 
-                               e_comp_editor_enable (sd->comp_editor, TRUE);
                                e_comp_editor_fill_widgets (sd->comp_editor, sd->component);
 
                                g_clear_object (&sd->comp_editor->priv->source_client);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]