]> spindle.queued.net Git - midori/commitdiff
Use brackets when checking bookmark address to avoid compiler warning
authorChristian Dywan <christian@twotoasts.de>
Sat, 26 Sep 2009 19:31:42 +0000 (21:31 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 26 Sep 2009 20:19:34 +0000 (22:19 +0200)
midori/midori-browser.c

index 568a4aa5e70de879f11c298098c0e46eb310c451..007e91d1497cb95ef2c9aeaa82d29f3bd857c2f2 100644 (file)
@@ -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 */