diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-edit.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c index 142e916997..cf1cffee52 100644 --- a/calendar/gui/e-meeting-edit.c +++ b/calendar/gui/e-meeting-edit.c @@ -141,12 +141,14 @@ window_delete_cb (GtkWidget *widget, /* FIXME: notify the event editor that our data has changed. For now, I'll just display a dialog box. */ { - GtkWidget *dialog; - - dialog = gnome_warning_dialog_parented ("Note that the meeting has changed,\n" - "and you should save this event.", - GTK_WINDOW (priv->meeting_window)); - gnome_dialog_run (GNOME_DIALOG(dialog)); + if (!cal_client_update_object (priv->client, priv->comp)) { + GtkWidget *dialog; + + dialog = gnome_warning_dialog_parented ("I couldn't automatically save this meeting,\n" + "so try to save this event manually.", + GTK_WINDOW (priv->meeting_window)); + gnome_dialog_run (GNOME_DIALOG(dialog)); + } } } |