Bo Peng wrote:
This is because the session stuff is implemented in
GuiView::closeEvent() which is not triggered when File->Quit is called.
I'll try to find a solution.

These two should behave identically, otherwise users will be confused.
Where is File->Quit? (Sorry about my laziness.)

The LFUN pass through the Action class. The problem is that GuiView::closeEvent() is not called. Two solution here:

1) Transfer the session stuff in GuiView::closeEvent() somewhere else.

2) Make sure that we pass through GuiView::closeEvent(). This could be achieved by a pure virtual methods in LyXView:

virtual void close() = 0;



Another problem is how that session management needs to be updated with
multiple-views.

I will have a look when multiple-views is stablized, or has it been?

Not yet. I am doing the window-close LFUN right now. Not easy...

Abdel.

Reply via email to