]> spindle.queued.net Git - midori/commitdiff
Quick fix: Open URIs again.
authorChristian Dywan <christian@twotoasts.de>
Sun, 30 Mar 2008 15:07:56 +0000 (17:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 30 Mar 2008 15:07:56 +0000 (17:07 +0200)
src/midori-webview.c

index 944934e20c2667c00d1ba084612824d58dc73778..b5c2e25bbc2539cfde1ded5c0bcd460265c0e2e9 100644 (file)
@@ -669,13 +669,15 @@ midori_web_view_set_property (GObject*      object,
                                               priv->icon);
         break;
     case PROP_URI:
-        if (priv->uri && *priv->uri)
+    {
+        const gchar* uri = g_value_get_string (value);
+        if (uri && *uri)
         {
             // FIXME: Autocomplete the uri
-            webkit_web_view_open (WEBKIT_WEB_VIEW (web_view),
-                                  g_value_get_string (value));
+            webkit_web_view_open (WEBKIT_WEB_VIEW (web_view), uri);
         }
         break;
+    }
     case PROP_TITLE:
         katze_assign (priv->title, g_value_dup_string (value));
         const gchar* title = midori_web_view_get_display_title (web_view);