Check the host as well before computing a tab color

This commit is contained in:
Christian Dywan 2009-03-26 16:19:52 +01:00
parent 8ff4ff5909
commit ff6a4b4197

View file

@ -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 dark, we lighten it up a litte. Finally we make the event box
visible and modify its background. */ 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); hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri->host, -1);
soup_uri_free (uri); soup_uri_free (uri);