aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-edit.c
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-11-10 07:39:14 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-11-10 07:39:14 +0800
commit4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be (patch)
treeec6737d67dfd8d426085a2a8f61163b03fc8c763 /calendar/gui/e-meeting-edit.c
parent189fe203472960ff14f23dc6050c69ea0cb4924d (diff)
downloadgsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar.gz
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar.bz2
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar.lz
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar.xz
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.tar.zst
gsoc2013-evolution-4befc35c5cbbac4bd48fd3d8a37ffccb99ddf2be.zip
fixed a bug that would make the calendar segfault if the meeting editor
* gui/e-meeting-edit.c: fixed a bug that would make the calendar segfault if the meeting editor were called up twice without first saving the component. svn path=/trunk/; revision=6526
Diffstat (limited to 'calendar/gui/e-meeting-edit.c')
-rw-r--r--calendar/gui/e-meeting-edit.c14
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));
+ }
}
}