close confirmation fix

This commit is contained in:
honfika@gmail.com
2016-01-08 10:59:08 +01:00
parent 98207d708b
commit 7cdae099f0
5 changed files with 38 additions and 26 deletions

View File

@@ -852,8 +852,8 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
return false;
}
public boolean closeAll() {
if (isModified()) {
public boolean closeAll(boolean showCloseConfirmation) {
if (showCloseConfirmation && isModified()) {
boolean closeConfirmResult = closeConfirmation(swfs.size() == 1 ? swfs.get(0) : null);
if (!closeConfirmResult) {
return false;