aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/gnome-cal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 29f1f9a7d3..4a37108fb0 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1842,7 +1842,8 @@ gnome_calendar_set_view (GnomeCalendar *gcal,
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
- if (gcal->priv->current_view_type == view_type)
+ if (gcal->priv->current_view_type == view_type &&
+ E_CALENDAR_VIEW (gcal->priv->views[view_type])->in_focus)
return;
gcal->priv->current_view_type = view_type;