commit: c48c49ab9b60f74e496dfee94a3461637bc5970f
parent: a8763f013f6b2395a2ee8dd52acf93bbabbfcffd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 18 May 2019 17:15:13 +0200
badwolf.c: Fix usage of ensure_uri_scheme try_file argument
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -557,7 +557,7 @@ locationCb_activate(GtkEntry *location, gpointer user_data)
char *target_url;
struct Client *browser = (struct Client *)user_data;
- target_url = ensure_uri_scheme((char *)gtk_entry_get_text(location), FALSE);
+ target_url = ensure_uri_scheme((char *)gtk_entry_get_text(location), TRUE);
if(target_url != NULL) webkit_web_view_load_uri(browser->webView, target_url);
@@ -631,7 +631,7 @@ struct Client *
new_browser(struct Window *window, gchar *target_url, WebKitWebView *related_web_view)
{
struct Client *browser = g_malloc(sizeof(struct Client));
- target_url = ensure_uri_scheme(target_url, (related_web_view != NULL));
+ target_url = ensure_uri_scheme(target_url, (related_web_view == NULL));
browser->window = window;
browser->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);