Abdelrazak Younes wrote: > Peter Kümmel wrote: >> Bo Peng wrote: >>> What I meant is something like follows. The patch does not work >>> correctly yet, but shows my point. >>> >>> 1. src/bufferlist.C: remove quitWriteBuffer and quitWriteAll. >>> >>> 2. LFUN_LYX_QUIT triggers LFUN_WINDOW_CLOSE >>> >>> 3. LFUN_WINDOW_CLOSE triggers LFUN_BUFFER_CLOSE one by one >>> >>> 4. closeEvent triggers LFUN_LYX_QUIT. >>> >>> That is to say, no one takes the shortcut quitWriteAll. lyx-close >>> experts (Peter, Enrico, Abdel), what do you think? Anything seriously >>> wrong here? >> >> I think, the most important thing when quitting is that there >> is one place where all prepare-to-quit code is located. >> >> Does you patch support this? >> How many ways of quitting exit? >> 1. menu exit -> LFUN_LYX_QUIT >> 2. last window closed -> LFUN_WINDOW_CLOSE -> LFUN_LYX_QUIT >> >> two only? have I forgotten one? > > You already forgot you Mac experience? It's amazing to see how human > beings manage to erase bad experiences from their memories :-)
NO, NO, I haven't forgotten it ;) The problem on the mac was that there is a auto generated menu entry which doesn't triggers LFUN_LYX_QUIT, so it is item 1. > > IIRC there's another way on Mac. Isn't this fixed now? > > Abdel. > Peter