mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Fix segfault introduced with --nodesktop
This commit is contained in:
parent
8dcb55ce88
commit
4a1dcb109b
@ -3,6 +3,7 @@
|
||||
* gicon.c (gicon_init): make missing icons non-fatal error
|
||||
|
||||
* gmain.c, gdesktop.c: added option not to display desktop icons
|
||||
(desktop_popup): don't handle clicks when --nodesktop
|
||||
|
||||
2000-01-26 Federico Mena Quintero <federico@helixcode.com>
|
||||
|
||||
|
@ -2707,6 +2707,9 @@ desktop_popup (GdkEventButton *event)
|
||||
|
||||
/* Create the menu and then strip the tearoff menu items, sigh... */
|
||||
|
||||
if (nodesktop)
|
||||
return;
|
||||
|
||||
popup = gnome_popup_menu_new (desktop_popup_items);
|
||||
|
||||
strip_tearoff_menu_item (desktop_arrange_icons_items);
|
||||
|
Loading…
Reference in New Issue
Block a user