[rfc][icedtea-web][policyeditor] Dispose on close fix

Andrew Azores aazores at redhat.com
Mon Jun 30 19:38:17 UTC 2014


Hi,

I noticed today that closing PolicyEditor via the window manager (in my case, alt-shift-q) does not properly respect the "Cancel" option on the confirmation dialog which appears if you are exiting without first saving changes. Using File>Exit or the Close button however does respect the Cancel option. The problem is that the window is being disposed due to the window manager close event, rather than letting the editor decide on its own when to dispose itself. Fixing this is as simple as removing one extra dispose() and changing the default close operation from DISPOSE_ON_CLOSE to DO_NOTHING_ON_CLOSE.

Thanks,

Andrew A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: policyeditor-dispose-on-close.patch
Type: text/x-patch
Size: 971 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140630/e4d218b2/policyeditor-dispose-on-close.patch>


More information about the distro-pkg-dev mailing list