On 08/12/2009 11:56 AM, Jürgen Spitzmüller wrote:

One remaining glitch: If the dirty buffer is a new document, the method should
bring up a dialog to enter a proper file name. Now it just saves the
newfileX.lyx, which is not very obvious (I first thought the document was
lost).

I'm not sure if we can do this at all easily. File dialogs and the like live in frontends/qt4, and we're in the Buffer destructor. In any event, the dialog that asks if you want to save does tell you what file is being saved, and where. RTFDialog! ;-)

All of this is a still reason to wish we could do this somewhere else. Maybe one way to do it would be in GuiView::closeEvent(). Here, we could check whether we are closing the last view. If so, then we can check whatever documents are still open, and do something appropriate.

Richard

Reply via email to