aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 724d4683a8..997bb289c9 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -430,7 +430,7 @@ show_task_list_config (CalendarPrefsDialog *prefs)
GtkColorButton *color_button;
GdkColor color;
CalUnits units;
- gboolean hide_completed_tasks = FALSE;
+ gboolean hide_completed_tasks;
color_button = GTK_COLOR_BUTTON (prefs->tasks_due_today_color);
calendar_config_get_tasks_due_today_color (&color);
@@ -441,7 +441,8 @@ show_task_list_config (CalendarPrefsDialog *prefs)
gtk_color_button_set_color (color_button, &color);
/* Hide Completed Tasks. */
- e_dialog_toggle_set (prefs->tasks_hide_completed, calendar_config_get_hide_completed_tasks ());
+ hide_completed_tasks = calendar_config_get_hide_completed_tasks ();
+ e_dialog_toggle_set (prefs->tasks_hide_completed, hide_completed_tasks);
/* Hide Completed Tasks Units. */
units = calendar_config_get_hide_completed_tasks_units ();