From: Christian Dywan Date: Tue, 6 Oct 2009 18:40:43 +0000 (+0200) Subject: Regard file:// URIs as valid for bookmarks X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca81aeb0343c067ab0064a6b973aa19158f27382;p=midori Regard file:// URIs as valid for bookmarks --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index dc549a88..d334d0af 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -608,7 +608,8 @@ midori_browser_edit_bookmark_uri_changed_cb (GtkEntry* entry, const gchar* uri = gtk_entry_get_text (entry); gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_ACCEPT, uri && (g_str_has_prefix (uri, "http://") - || g_str_has_prefix (uri, "https://"))); + || g_str_has_prefix (uri, "https://") + || g_str_has_prefix (uri, "file://"))); } /* Private function, used by MidoriBookmarks and MidoriHistory */