From 1b2fefb086c3e34089beb8b89b22d79005cc7725 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 6 Oct 2010 13:08:41 +0200 Subject: Bug #630390 - Operation stuck: Generating message list (cancelled) --- shell/e-shell-backend.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell') diff --git a/shell/e-shell-backend.c b/shell/e-shell-backend.c index aa95a78943..d679c05ed5 100644 --- a/shell/e-shell-backend.c +++ b/shell/e-shell-backend.c @@ -320,6 +320,10 @@ e_shell_backend_add_activity (EShellBackend *shell_backend, g_return_if_fail (E_IS_SHELL_BACKEND (shell_backend)); g_return_if_fail (E_IS_ACTIVITY (activity)); + /* skip already cancelled activities */ + if (g_cancellable_is_cancelled (e_activity_get_cancellable (activity))) + return; + g_queue_push_tail (shell_backend->priv->activities, activity); /* We reference the backend on every activity to -- cgit