From: Milan Crha Date: Wed, 17 Aug 2011 07:07:38 +0000 (+0200) Subject: Do not keep Google progress notifications in book view forever X-Git-Tag: upstream/3.7.4~1763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3737c0c3fd76c7aa517caabe0086db3d2b9421f8;p=platform%2Fupstream%2Fevolution-data-server.git Do not keep Google progress notifications in book view forever --- diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c index 1261b17..923ddff 100644 --- a/addressbook/backends/google/e-book-backend-google.c +++ b/addressbook/backends/google/e-book-backend-google.c @@ -522,7 +522,14 @@ static void finish_operation (EBookBackend *backend, guint32 opid) { EBookBackendGooglePrivate *priv = E_BOOK_BACKEND_GOOGLE (backend)->priv; - g_hash_table_remove (priv->cancellables, GUINT_TO_POINTER (opid)); + + if (g_hash_table_remove (priv->cancellables, GUINT_TO_POINTER (opid))) { + GList *iter; + + /* Send out a status message to each view */ + for (iter = priv->bookviews; iter; iter = iter->next) + e_data_book_view_notify_complete (E_DATA_BOOK_VIEW (iter->data), NULL); + } } static void