aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 02a1e1bfd3..ce01a389e6 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -618,7 +618,9 @@ get_widgets (TaskPage *tpage)
#define GW(name) glade_xml_get_widget (priv->xml, name)
priv->main = GW ("task-page");
- g_assert (priv->main);
+ if (!priv->main)
+ return FALSE;
+
gtk_widget_ref (priv->main);
gtk_widget_unparent (priv->main);