Abdelrazak Younes wrote:
> Peter Kümmel wrote:
>> Bennett Helm wrote:
>>> On Nov 27, 2006, at 9:56 AM, Peter Kümmel wrote:
>>>
>>>> Bennett Helm wrote:
>>>>> On Nov 23, 2006, at 4:13 PM, Jean-Marc Lasgouttes wrote:
>>>>>
>>>>>> BTW Bennett, is it possible to start LyX from the finder now?
>>>>> Yes -- that's much better.
>>>>>
>>>>> Bennett
>>>>>
>>>> Ah, a actual Mac build. :)
>>>>
>>>> Does it crash when quitting?
>>> No. It does still crash when closing the last open document.
>>>
>>> Bennett
>>
>> Fine! And we don't use a hard ::exit(0).
>
> There seems to be a mis-communication here, does it crash or no?
> If yes, a backtrace please.
>
> Abdel.
>
I assume it still crashes, here a patch which hopefully helps.
--
Peter Kümmel
Index: src/frontends/qt4/GuiImplementation.C
===================================================================
--- src/frontends/qt4/GuiImplementation.C (revision 16071)
+++ src/frontends/qt4/GuiImplementation.C (working copy)
@@ -107,6 +107,9 @@
if (views_.empty()) {
theLyXFunc().setLyXView(0);
dispatch(FuncRequest(LFUN_LYX_QUIT));
+#if defined(Q_OS_DARWIN) || defined(Q_WS_MAC)
+ ::exit(0);
+#endif
return;
}