]> spindle.queued.net Git - midori/commitdiff
Regard file:// URIs as valid for bookmarks
authorChristian Dywan <christian@twotoasts.de>
Tue, 6 Oct 2009 18:40:43 +0000 (20:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 6 Oct 2009 18:40:43 +0000 (20:40 +0200)
midori/midori-browser.c

index dc549a88902cc231eeaa18174b0355e0278b8c0c..d334d0af70aa3ff9b9b3ec01bb9acccce3e3bae9 100644 (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 */