diff options
Diffstat (limited to 'modules/calendar/e-memo-shell-sidebar.c')
-rw-r--r-- | modules/calendar/e-memo-shell-sidebar.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-sidebar.c b/modules/calendar/e-memo-shell-sidebar.c index c0001d19af..7b4b8f71b6 100644 --- a/modules/calendar/e-memo-shell-sidebar.c +++ b/modules/calendar/e-memo-shell-sidebar.c @@ -209,6 +209,13 @@ memo_shell_sidebar_client_opened_cb (EMemoShellSidebar *memo_shell_sidebar, /* fall through */ default: + if (error->code != E_CALENDAR_STATUS_REPOSITORY_OFFLINE) { + e_alert_run_dialog_for_args ( + GTK_WINDOW (shell_window), + "calendar:failed-open-memos", + error->message, NULL); + } + e_memo_shell_sidebar_remove_source ( memo_shell_sidebar, e_cal_get_source (client)); @@ -257,6 +264,11 @@ memo_shell_sidebar_default_opened_cb (EMemoShellSidebar *memo_shell_sidebar, return; default: + e_alert_run_dialog_for_args ( + GTK_WINDOW (e_shell_view_get_shell_window (shell_view)), + "calendar:failed-open-memos", + error->message, NULL); + e_memo_shell_sidebar_remove_source ( memo_shell_sidebar, e_cal_get_source (client)); |