Can't trap Quit
Michael Binder
runr at prismpole.com
Tue Sep 18 05:58:53 EDT 2007
> The user can close the window and be prompted to save with an answer
> command. If the user selects Yes then the program saves correctly and
> closes the stack window and all is good. However, if the user answers
> "No" the window closes correctly without saving (as it should) but
> now if the user selects Quit the standalone rapidly closes the
> remaining windows but never asks the user to save. In this situation
> if the user goes to another card in the stack first, then Quit the
> program will correctly ask to save if it is needed.
>
> This bug is in Bugzilla 5362.
>
> So I have two problems and don't have a good solution to either of
> them.
> 1. Quitting is not caught in the menu handler.
> 2. Answering No in an answer dialog prevents even the on
> shutdownRequest.
>
> Ken Ray helped me characterize this bug and entered the Buzilla
> ticket. He tried it in MetaCard and it doesn't seem to be a problem
> there. How have folks solved this in Rev?
Hi Bill,
I think bug 5362 = 4994. There is a workaround. After each
Answer Dialog, just reset the defaultstack.
hth, Michael Binder
More information about the use-livecode
mailing list