Bennett Helm wrote:
>> Yes, please this one.
> 
> Well ... I don't notice any difference from the last patch -- including
> no crashes to generate a backtrace with.
> 
> Bennett

How many ways are there on the Mac to exit the application?

What is the output of LyX when you apply attached patch
for all the ways of exiting?


-- 
Peter Kümmel
Index: src/lyxfunc.C
===================================================================
--- src/lyxfunc.C       (Revision 16135)
+++ src/lyxfunc.C       (Arbeitskopie)
@@ -1034,6 +1034,7 @@
                        break;
 
                case LFUN_LYX_QUIT:
+                       printf("case LFUN_LYX_QUIT:\n");
                        // FIXME: this code needs to be transfered somewhere 
else
                        // as lyx_view_ will most certainly be null and a same 
buffer
                        // might be visible in more than one LyXView.
@@ -1664,6 +1665,7 @@
                        break;
 
                case LFUN_WINDOW_CLOSE:
+                       printf("case LFUN_WINDOW_CLOSE:\n");
                        BOOST_ASSERT(lyx_view_);
                        BOOST_ASSERT(theApp());
                        lyx_view_->close();
Index: src/frontends/qt4/GuiView.C
===================================================================
--- src/frontends/qt4/GuiView.C (Revision 16135)
+++ src/frontends/qt4/GuiView.C (Arbeitskopie)
@@ -186,6 +186,7 @@
 
 void GuiView::close()
 {
+       printf("void GuiView::close()\n");
        QMainWindow::close();
 }
 
@@ -218,6 +219,7 @@
 
 void GuiView::closeEvent(QCloseEvent * close_event)
 {
+       printf("void GuiView::closeEvent(QCloseEvent * close_event)\n");
        theApp()->gui().unregisterView(id());   
        if (theApp()->gui().viewIds().empty())
        {

Reply via email to