]> spindle.queued.net Git - midori/commitdiff
Disconnect request-queued properly to avoid lots of dialog callbacks
authorChristian Dywan <christian@twotoasts.de>
Fri, 25 Sep 2009 20:51:18 +0000 (22:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 25 Sep 2009 20:51:18 +0000 (22:51 +0200)
The wrong user data argument passed when disconnecting request-queued
would lead to the callback not being disconnected, which led to a
number of dialogs relative to the number of opened websites being spawned.

katze/katze-http-auth.c

index cb2beb40e94b2d587072517c76f9433249154baa..38c6ce5c927e87f9cffbad485ce7288ddf2285a4 100644 (file)
@@ -295,7 +295,7 @@ katze_http_auth_session_request_queued_cb (SoupSession*   session,
     g_signal_connect (session, "authenticate",
         G_CALLBACK (katze_http_auth_session_authenticate_cb), http_auth);
     g_signal_handlers_disconnect_by_func (session,
-        katze_http_auth_session_request_queued_cb, NULL);
+        katze_http_auth_session_request_queued_cb, http_auth);
 }
 
 static void