From 249b8e466920624afb69651298ce49332596eea0 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 26 Sep 2009 21:31:42 +0200 Subject: [PATCH] Use brackets when checking bookmark address to avoid compiler warning --- midori/midori-browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 568a4aa5..007e91d1 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -611,8 +611,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://")); + uri && (g_str_has_prefix (uri, "http://") + || g_str_has_prefix (uri, "https://"))); } /* Private function, used by MidoriBookmarks and MidoriHistory */ -- 2.39.5