Commit b2c3df60 authored by Peter de Ridder's avatar Peter de Ridder Committed by Simon Steinbeiss
Browse files

Make sure icon == NULL if no icon is found

parent 7aae6a50
......@@ -720,6 +720,7 @@ appearance_settings_load_icon_themes (preview_data *pd)
for (p = 0; p < 4; p++)
icon = NULL;
if (gtk_icon_theme_has_icon (icon_theme, preview_icons[p]))
icon = gtk_icon_theme_load_icon (icon_theme, preview_icons[p], 16, 0, NULL);
else if (gtk_icon_theme_has_icon (icon_theme, "image-missing"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment