Make sure to only update the address entry with the current view
This commit is contained in:
parent
b0babb3c17
commit
a6f2ca54e9
1 changed files with 7 additions and 4 deletions
|
@ -514,10 +514,13 @@ midori_view_notify_uri_cb (GtkWidget* view,
|
||||||
GParamSpec* pspec,
|
GParamSpec* pspec,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
|
if (view == midori_browser_get_current_tab (browser))
|
||||||
GtkAction* action = _action_by_name (browser, "Location");
|
{
|
||||||
midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
|
const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
|
||||||
_midori_browser_update_interface (browser);
|
GtkAction* action = _action_by_name (browser, "Location");
|
||||||
|
midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
|
||||||
|
_midori_browser_update_interface (browser);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue