Regard file:// URIs as valid for bookmarks
This commit is contained in:
parent
50c159e9bb
commit
ca81aeb034
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue