mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-21 17:25:46 +01:00
fixed menu editor crash when saving incomplete menus
This commit is contained in:
@@ -1678,6 +1678,8 @@ processData(char *title, ItemData *data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PipeInfo:
|
case PipeInfo:
|
||||||
|
if (!data->param.pipe.command)
|
||||||
|
return NULL;
|
||||||
PLAppendArrayElement(item, pomenu);
|
PLAppendArrayElement(item, pomenu);
|
||||||
s1 = wstrconcat("| ", data->param.pipe.command);
|
s1 = wstrconcat("| ", data->param.pipe.command);
|
||||||
PLAppendArrayElement(item, PLMakeString(s1));
|
PLAppendArrayElement(item, PLMakeString(s1));
|
||||||
@@ -1685,11 +1687,16 @@ processData(char *title, ItemData *data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ExternalInfo:
|
case ExternalInfo:
|
||||||
|
if (!data->param.external.path)
|
||||||
|
return NULL;
|
||||||
PLAppendArrayElement(item, pomenu);
|
PLAppendArrayElement(item, pomenu);
|
||||||
PLAppendArrayElement(item, PLMakeString(data->param.external.path));
|
PLAppendArrayElement(item, PLMakeString(data->param.external.path));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DirectoryInfo:
|
case DirectoryInfo:
|
||||||
|
if (!data->param.directory.directory
|
||||||
|
|| !data->param.directory.command)
|
||||||
|
return NULL;
|
||||||
{
|
{
|
||||||
int l;
|
int l;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user