mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[diff] IDEA-119780 close dialogs with CANCEL exit code rather OK
Seems to be a more safe choice.
This commit is contained in:
@@ -90,7 +90,7 @@ public class DiffPanelOptions {
|
||||
while (window instanceof DialogWrapperDialog) {
|
||||
DialogWrapperDialog dlg = (DialogWrapperDialog)window;
|
||||
window = window.getParent();
|
||||
dlg.getDialogWrapper().close(DialogWrapper.OK_EXIT_CODE);
|
||||
dlg.getDialogWrapper().close(DialogWrapper.CLOSE_EXIT_CODE);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user