Menu

#375 MacOSX reopen bug fix

None
closed-works-for-me
general (64)
5
2014-04-25
2011-01-10
Evan Wright
No

This is a patch for the following bug (on Mac OSX):
1) Modify a buffer
2) Close the window and elect to discard without saving, application goes into background mode
3) Click the jEdit icon in the dock

Expected: A new view is opened.
Actual: Nothing.

Discussion

  • Evan Wright

    Evan Wright - 2011-01-10
     
  • Evan Wright

    Evan Wright - 2011-02-08

    A comment on why this patch fixes the problem: When you hit the "Discard Selected" button, the View is disposed of, but a windowActivated message also gets sent because the dialog is closed, exposing the View. In windowActivated, the (now closed and disposed) View is activated, and then when you attempt to reopen the application, the MacOSX plugin think that there is still an active view, so it just attempts to bring it to the front (even though the window has been disposed) rather than opening a new one, as should happen.

    This patch just ignores that extra windowActivated message that occurs after the window is already closed (the fact that it receives one is probably a JVM bug).

     
  • Matthieu Casanova

    Hi, I see the bug but the patch do not fix it, did I miss something ?

     
  • Alan Ezust

    Alan Ezust - 2011-12-05
    • assigned_to: nobody --> voituk
     
  • Vadim Voituk

    Vadim Voituk - 2012-01-29

    It works OK for me with latest trunk.

     
  • Alan Ezust

    Alan Ezust - 2014-04-25
    • status: open --> closed-works-for-me
    • Group: -->
     
  • Alan Ezust

    Alan Ezust - 2014-04-25

    Closed - works for me already too.

     

Log in to post a comment.