Check the host as well before computing a tab color
This commit is contained in:
parent
8ff4ff5909
commit
ff6a4b4197
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue