mirror of https://github.com/GNOME/gimp.git
app: treat an empty ("" not NULL) plug-in proc_install->menu_path as NULL
gimp_plug_in_handle_proc_install(): don't set the new procedure's menu path nor its menu label if proc_install->menu_path is "", so we don't run into action and menu creating confusion later. Do it here and not later so the "" string never enters the system.
This commit is contained in:
parent
71bddaa23c
commit
6e3495ff69
|
@ -866,7 +866,7 @@ gimp_plug_in_handle_proc_install (GimpPlugIn *plug_in,
|
|||
|
||||
/* Sanity check menu path */
|
||||
|
||||
if (proc_install->menu_path)
|
||||
if (proc_install->menu_path && strlen (proc_install->menu_path))
|
||||
{
|
||||
if (proc_install->menu_path[0] == '<')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue