[gnome-calendar/calendar-editor] source-manager: don't try to save NULL sources
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-manager: don't try to save NULL sources
- Date: Mon, 9 Feb 2015 19:23:38 +0000 (UTC)
commit faab0f052ebb00f042324236db91c7cb7aeee0e1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Feb 9 17:23:30 2015 -0200
source-manager: don't try to save NULL sources
src/gcal-source-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index e68f02f..fc77a85 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -214,7 +214,8 @@ response_signal (GtkDialog *dialog,
/* save the source */
if (priv->mode == GCAL_SOURCE_DIALOG_MODE_EDIT || response_id == GTK_RESPONSE_APPLY)
{
- gcal_manager_save_source (priv->manager, priv->source);
+ if (priv->source)
+ gcal_manager_save_source (priv->manager, priv->source);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]