From: Christian Dywan Date: Wed, 30 Jun 2010 19:21:06 +0000 (+0200) Subject: 'Use current' should set 'about:blank' for a blank page X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01f568b8ab7a7d4e8734ca004d113fd1b3fea627;p=midori 'Use current' should set 'about:blank' for a blank page --- diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index 80b207e7..1a731979 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -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); } }