]> spindle.queued.net Git - midori/commitdiff
'Use current' should set 'about:blank' for a blank page
authorChristian Dywan <christian@twotoasts.de>
Wed, 30 Jun 2010 19:21:06 +0000 (21:21 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 30 Jun 2010 19:21:06 +0000 (21:21 +0200)
midori/midori-preferences.c

index 80b207e72b54662bf1c9f557e9f30a540dd2f2ab..1a7319794ddf6bcaec43487a95421a1422e817fb 100644 (file)
@@ -176,7 +176,10 @@ midori_preferences_homepage_current_clicked_cb (GtkWidget*         button,
     if (GTK_IS_WINDOW (browser))
     {
         gchar* uri = katze_object_get_string (browser, "uri");
-        g_object_set (settings, "homepage", uri, NULL);
+        if (uri && *uri)
+            g_object_set (settings, "homepage", uri, NULL);
+        else
+            g_object_set (settings, "homepage", "about:blank", NULL);
         g_free (uri);
     }
 }