Do not prompt for offline when mail backend not started

This commit is contained in:
Milan Crha
2011-03-09 16:59:40 +01:00
committed by Rodrigo Moya
parent cdd89ef290
commit a76c64d353

View File

@ -119,7 +119,7 @@ mail_backend_prepare_for_offline_cb (EShell *shell,
window = e_shell_get_active_window (shell);
session = e_mail_backend_get_session (backend);
if (e_shell_get_network_available (shell))
if (e_shell_get_network_available (shell) && e_shell_backend_is_started (E_SHELL_BACKEND (backend)))
synchronize = em_utils_prompt_user (
window, NULL, "mail:ask-quick-offline", NULL);