]> spindle.queued.net Git - midori/commitdiff
Reset title when setting new URI
authorChristian Dywan <christian@twotoasts.de>
Thu, 28 Jun 2012 20:00:54 +0000 (22:00 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 28 Jun 2012 20:02:12 +0000 (22:02 +0200)
Otherwise there's a race until committed.

midori/midori-view.c

index 00bd6ffea5784d98613cc9b0cd2a5d2bc792295b..78074a60fceccbbb68337b3d4619ec2c561bbcf2 100644 (file)
@@ -4384,6 +4384,7 @@ midori_view_set_uri (MidoriView*  view,
             katze_assign (view->uri, midori_uri_format_for_display (uri));
             if (g_strcmp0 (view->item->uri, view->uri))
                 katze_item_set_uri (view->item, view->uri);
+            katze_assign (view->title, NULL);
             g_object_notify (G_OBJECT (view), "uri");
             webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), uri);
         }