[gnome-shell/244-calendar-server-update-views-only-after-the-time-range-is-set] [calendar-server] Update views only after the time range is set
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/244-calendar-server-update-views-only-after-the-time-range-is-set] [calendar-server] Update views only after the time range is set
- Date: Mon, 30 Apr 2018 15:57:16 +0000 (UTC)
commit 13625a3ae7f20cea08bff5522c5dcc79166b100c
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 30 17:58:43 2018 +0200
[calendar-server] Update views only after the time range is set
Issue #244
src/calendar-server/gnome-shell-calendar-server.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/calendar-server/gnome-shell-calendar-server.c
b/src/calendar-server/gnome-shell-calendar-server.c
index e979f7ff3..9b76fb073 100644
--- a/src/calendar-server/gnome-shell-calendar-server.c
+++ b/src/calendar-server/gnome-shell-calendar-server.c
@@ -590,6 +590,11 @@ app_load_events (App *app)
g_list_free (app->live_views);
app->live_views = NULL;
+ if (!app->since || !app->until)
+ {
+ print_debug ("Skipping load of events, no time interval set yet");
+ return;
+ }
/* timezone could have changed */
app_update_timezone (app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]