mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
when we really need to exit, really exit
This commit is contained in:
+5
-1
@@ -724,6 +724,10 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
}
|
||||
|
||||
public void exit(final boolean force) {
|
||||
exit(force, true);
|
||||
}
|
||||
|
||||
public void exit(final boolean force, final boolean allowListenersToCancel) {
|
||||
if (!force && getDefaultModalityState() != ModalityState.NON_MODAL) {
|
||||
return;
|
||||
}
|
||||
@@ -744,7 +748,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
|
||||
saveSettings();
|
||||
|
||||
if (!canExit()) {
|
||||
if (!canExit() && allowListenersToCancel) {
|
||||
myExitCode = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user