diff options
author | Milan Crha <mcrha@redhat.com> | 2011-03-04 17:00:26 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-03-04 17:00:26 +0800 |
commit | 744f785a9c70b860a23c9d8982e755caf99c9b2c (patch) | |
tree | 10f8c124769b99fdbd5224f80df40afdcf6c1d4e /mail | |
parent | f1e416438026e495a29ca36715e27964f7dc4b04 (diff) | |
download | gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar.gz gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar.bz2 gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar.lz gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar.xz gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.tar.zst gsoc2013-evolution-744f785a9c70b860a23c9d8982e755caf99c9b2c.zip |
Do not flush Outbox when mail shell backend not started
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-backend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index d0631b13dd..fb2a384796 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -280,7 +280,7 @@ mail_backend_prepare_for_quit_cb (EShell *shell, static void mail_backend_quit_requested_cb (EShell *shell, EShellQuitReason reason, - EShellBackend *shell_backend) + EShellBackend *mail_shell_backend) { CamelFolder *folder; GtkWindow *window; @@ -301,6 +301,9 @@ mail_backend_quit_requested_cb (EShell *shell, strcmp(e_shell_window_get_active_view((EShellWindow *)window), "mail") != 0) return; + if (!e_shell_backend_is_started (mail_shell_backend)) + return; + /* Check Outbox for any unsent messages. */ folder = e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_OUTBOX); |