From: Christian Dywan Date: Thu, 26 Mar 2009 15:19:52 +0000 (+0100) Subject: Check the host as well before computing a tab color X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff6a4b419741110cfcbd10596a5efce5e7a3f178;p=midori Check the host as well before computing a tab color --- diff --git a/extensions/colorful-tabs.c b/extensions/colorful-tabs.c index 2eea40e5..6d8a46e5 100644 --- a/extensions/colorful-tabs.c +++ b/extensions/colorful-tabs.c @@ -45,7 +45,7 @@ colorful_tabs_view_notify_uri_cb (MidoriView* view, dark, we lighten it up a litte. Finally we make the event box visible and modify its background. */ - if ((uri = soup_uri_new (midori_view_get_display_uri (view)))) + if ((uri = soup_uri_new (midori_view_get_display_uri (view))) && uri->host) { hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri->host, -1); soup_uri_free (uri);