Merge pull request #7497 from deathbeam/revert-closed

Revert "Move close handling to windowClosed event"
This commit is contained in:
Tomas Slusny
2019-01-23 07:36:51 +00:00
committed by GitHub

View File

@@ -215,17 +215,11 @@ public class SwingUtil
} }
if (result == JOptionPane.OK_OPTION) if (result == JOptionPane.OK_OPTION)
{
frame.dispose();
}
}
@Override
public void windowClosed(WindowEvent event)
{ {
callback.run(); callback.run();
System.exit(0); System.exit(0);
} }
}
}); });
} }