Bug #627333 - Cannot cancel password dialog for an addressbook
authorMilan Crha <mcrha@redhat.com>
Fri, 27 Aug 2010 09:11:11 +0000 (11:11 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 27 Aug 2010 09:11:11 +0000 (11:11 +0200)
libedataserverui/e-book-auth-util.c

index 25b380b..a143bf2 100644 (file)
@@ -590,6 +590,9 @@ e_load_book_source_async (ESource *source,
        if (cancellable != NULL) {
                g_return_if_fail (G_IS_CANCELLABLE (cancellable));
                g_object_ref (cancellable);
+       } else {
+               /* always provide cancellable, because the code depends on it */
+               cancellable = g_cancellable_new ();
        }
 
        context = g_slice_new0 (LoadContext);