Fix one of the bugs in the TODO list, sushi would die with a bad endpoint
if you hit enter on one of the blank lines in the main menu.
This commit is contained in:
parent
f92ee7af5c
commit
73ffa92b18
@ -1,7 +1,6 @@
|
|||||||
? abort key for run
|
? abort key for run
|
||||||
Make F6 work
|
Make F6 work
|
||||||
commmandline switches for log/script
|
commmandline switches for log/script
|
||||||
enter on a BLANK entry makes sushi die with bad endpoint
|
|
||||||
Something should indicate when scripting is on. bottom menu.
|
Something should indicate when scripting is on. bottom menu.
|
||||||
F8 Image -> Screenshot
|
F8 Image -> Screenshot
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: sushi.c,v 1.7 2001/01/14 21:23:23 garbled Exp $ */
|
/* $NetBSD: sushi.c,v 1.8 2001/01/22 07:12:49 garbled Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
@ -357,16 +357,19 @@ display_menu(cqm, title, basedir)
|
|||||||
|
|
||||||
bind_menu(scrollp, basedir);
|
bind_menu(scrollp, basedir);
|
||||||
|
|
||||||
|
loop:
|
||||||
selection = activateCDKScroll(scrollp, NULL);
|
selection = activateCDKScroll(scrollp, NULL);
|
||||||
|
|
||||||
|
mte = tree_getentry(cqm, selection);
|
||||||
|
if (selection != -1 && strcmp(mte->filename, "BLANK") == 0)
|
||||||
|
goto loop;
|
||||||
|
|
||||||
destroyCDKScroll(scrollp);
|
destroyCDKScroll(scrollp);
|
||||||
|
|
||||||
for(i=0; i<items; i++)
|
for(i=0; i<items; i++)
|
||||||
free(menu[i]);
|
free(menu[i]);
|
||||||
free(menu);
|
free(menu);
|
||||||
|
|
||||||
mte = tree_getentry(cqm, selection);
|
|
||||||
|
|
||||||
return(mte);
|
return(mte);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user