Regard file:// URIs as valid for bookmarks

This commit is contained in:
Christian Dywan 2009-10-06 20:40:43 +02:00
parent 50c159e9bb
commit ca81aeb034

View file

@ -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 */