]> spindle.queued.net Git - midori/commitdiff
Also reset icon when resetting location
authorChristian Dywan <christian@twotoasts.de>
Fri, 27 Jan 2012 20:13:45 +0000 (21:13 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 27 Jan 2012 20:13:45 +0000 (21:13 +0100)
midori/midori-browser.c

index 32d72a5a00f3517dead1705a64f1af31b7f159a1..ccecdad5b60ecd3d9d299c5710dddba79798e030 100644 (file)
@@ -3744,10 +3744,14 @@ static void
 _action_location_reset_uri (GtkAction*     action,
                             MidoriBrowser* browser)
 {
-    const gchar* uri;
-
-    uri = midori_browser_get_current_uri (browser);
-    midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri);
+    GtkWidget* view;
+    if ((view = midori_browser_get_current_tab (browser)))
+    {
+        midori_location_action_set_text (MIDORI_LOCATION_ACTION (action),
+            midori_view_get_display_uri (MIDORI_VIEW (view)));
+        midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action),
+            midori_view_get_icon (MIDORI_VIEW (view)));
+    }
 }