File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ print_app_to_buffer(struct app *app, GString *submenu)
92
92
g_string_append_printf (submenu , " <item label=\"%s\"" ,
93
93
app -> name_localized ? app -> name_localized : app -> name );
94
94
if (show_icons ) {
95
- g_string_append_printf (submenu , " icon=\"%s\"" , app -> icon );
95
+ g_string_append_printf (submenu , " icon=\"%s\"" , app -> icon ? app -> icon : "" );
96
96
}
97
97
g_string_append_printf (submenu , ">\n" );
98
98
@@ -208,7 +208,7 @@ print_menu(GList *dirs, GList *apps)
208
208
209
209
printf (" <menu id=\"%s\" label=\"%s\"" , dir -> name , dir -> name_localized ? : dir -> name );
210
210
if (show_icons ) {
211
- printf (" icon=\"%s\"" , dir -> icon );
211
+ printf (" icon=\"%s\"" , dir -> icon ? dir -> icon : "" );
212
212
}
213
213
printf (">\n" );
214
214
You can’t perform that action at this time.
0 commit comments