[Xfce4-commits] <midori:master> Duplicate current URI when reloading Midori.View

Christian Dywan noreply at xfce.org
Wed Apr 3 01:24:03 CEST 2013


Updating branch refs/heads/master
         to 6e22ef9b349cf22c88282ed7514b3f33968a41c1 (commit)
       from 63f5230dbbd893b6fd5acc6bb2dc8dcbf17d43c9 (commit)

commit 6e22ef9b349cf22c88282ed7514b3f33968a41c1
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Apr 3 00:55:57 2013 +0200

    Duplicate current URI when reloading Midori.View

 midori/midori-view.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index e6d4876..f614170 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5250,7 +5250,12 @@ midori_view_reload (MidoriView* view,
     g_return_if_fail (MIDORI_IS_VIEW (view));
 
     if (midori_tab_is_blank (MIDORI_TAB (view)))
-        midori_view_set_uri (view, midori_tab_get_uri (MIDORI_TAB (view)));
+    {
+        /* Duplicate here because the URI pointer might change */
+        gchar* uri = g_strdup (midori_tab_get_uri (MIDORI_TAB (view)));
+        midori_view_set_uri (view, uri);
+        g_free (uri);
+    }
     else if (from_cache)
         webkit_web_view_reload (WEBKIT_WEB_VIEW (view->web_view));
     else


More information about the Xfce4-commits mailing list