aboutdialog: Fix build on windows

This commit is contained in:
Alice Mikhaylenko 2024-06-17 15:35:39 +04:00
parent 0b9dfdd41f
commit 45b93644b7

View File

@ -727,8 +727,9 @@ update_links_cb (GtkAboutDialog *about)
{
GtkTextTag *tag = l->data;
GdkRGBA color;
const char *uri = g_object_get_data (G_OBJECT (tag), "uri");
if (g_ptr_array_find_with_equal_func (about->visited_links, link, (GCompareFunc)strcmp, NULL))
if (uri && g_ptr_array_find_with_equal_func (about->visited_links, uri, (GCompareFunc)strcmp, NULL))
color = visited_link_color;
else
color = link_color;