]> spindle.queued.net Git - midori/commitdiff
Make sure to only update the address entry with the current view
authorChristian Dywan <christian@twotoasts.de>
Fri, 15 May 2009 15:30:54 +0000 (17:30 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 15 May 2009 15:30:54 +0000 (17:30 +0200)
midori/midori-browser.c

index 8cd62669ef6f28f95c728b7c358d24748c75c105..d9467a9da6b277ee5125313a3efd629b69334e72 100644 (file)
@@ -514,10 +514,13 @@ midori_view_notify_uri_cb (GtkWidget*     view,
                            GParamSpec*    pspec,
                            MidoriBrowser* browser)
 {
-    const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
-    GtkAction* action = _action_by_name (browser, "Location");
-    midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
-    _midori_browser_update_interface (browser);
+    if (view == midori_browser_get_current_tab (browser))
+    {
+        const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
+        GtkAction* action = _action_by_name (browser, "Location");
+        midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
+        _midori_browser_update_interface (browser);
+    }
 }
 
 static void