Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--badwolf.c4
diff --git a/badwolf.c b/badwolf.c
index 62cfc79..fef7d36 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -456,7 +456,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);
@@ -530,7 +530,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);