[evolution] [ECompEditor] Always enable the editor after the save is complete
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [ECompEditor] Always enable the editor after the save is complete
- Date: Tue, 10 Nov 2015 16:21:05 +0000 (UTC)
commit 69f50d8a4c2c35f90872e7882cceb3b0a1c4cc3b
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]