1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 12:54:20 +01:00

fixed menu editor crash when saving incomplete menus

This commit is contained in:
kojima
2001-08-23 16:49:18 +00:00
parent fa994f627e
commit 64b168083f

View File

@@ -1678,6 +1678,8 @@ processData(char *title, ItemData *data)
break;
case PipeInfo:
if (!data->param.pipe.command)
return NULL;
PLAppendArrayElement(item, pomenu);
s1 = wstrconcat("| ", data->param.pipe.command);
PLAppendArrayElement(item, PLMakeString(s1));
@@ -1685,11 +1687,16 @@ processData(char *title, ItemData *data)
break;
case ExternalInfo:
if (!data->param.external.path)
return NULL;
PLAppendArrayElement(item, pomenu);
PLAppendArrayElement(item, PLMakeString(data->param.external.path));
break;
case DirectoryInfo:
if (!data->param.directory.directory
|| !data->param.directory.command)
return NULL;
{
int l;
char *tmp;