diff options
-rw-r--r-- | src/idoswitchmenuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c index 16122f3..cfbd542 100644 --- a/src/idoswitchmenuitem.c +++ b/src/idoswitchmenuitem.c @@ -202,7 +202,7 @@ ido_switch_menu_item_set_icon (IdoSwitchMenuItem *item, gtk_image_set_from_gicon (GTK_IMAGE (priv->image), icon, GTK_ICON_SIZE_MENU); } - else + else if (priv->image) { gtk_image_clear (GTK_IMAGE (priv->image)); } |