I'd like to change the very old assert in GuiApplication::unregisterView.
It causes a crash on Mac as described below. I don't know if this may happen
on other platforms too. Anyway, does anyone has a better proposal to solve
this problem? A patch is attached.

Stephan

Am 02.07.2015 um 00:28 schrieb LyX Ticket Tracker <t...@lyx.org>:

> #9659: lyx crash when exited from dock
> -----------------------------+-----------------------
> Reporter:  HongshengHe      |       Owner:  stwitt
>     Type:  defect           |      Status:  accepted
> Priority:  high             |   Milestone:  2.2.0
> Component:  general          |     Version:  2.2.0dev
> Severity:  critical         |  Resolution:
> Keywords:  os=macosx,crash  |
> -----------------------------+-----------------------
> 
> Comment (by stwitt):
> 
> I've read the Qt-code for Mac in QCocoaApplicationDelegate method
> {{{applicationShouldTerminate}}}. It checks in {{{canQuit}}} if the
> application is ready to terminate by sending a close event. If this
> returns true it calls {{{close}}} for the main window. This way the event is
> sent twice and the crash is determined.
> 
> -- 
> Ticket URL: <http://www.lyx.org/trac/ticket/9659#comment:7>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor

Attachment: ticket-9659-b.patch
Description: Binary data

Reply via email to