From a6f2ca54e91e1c100b785dac746fad181eace601 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 15 May 2009 17:30:54 +0200 Subject: [PATCH] Make sure to only update the address entry with the current view --- midori/midori-browser.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 8cd62669..d9467a9d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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 -- 2.39.5