PL-10591 [Desktop] Close standard Remove Confirmation dialog if delete has failed because of deletion policy

This commit is contained in:
Konstantin Krivopustov 2018-03-29 15:31:37 +04:00
parent 0782724dfd
commit 6ae26569e0

View File

@ -1704,10 +1704,13 @@ public class DesktopWindowManager extends WindowManager {
});
}
action.actionPerform(null);
dialog.setVisible(false);
cleanupAfterModalDialogClosed(null);
dialog.dispose();
try {
action.actionPerform(null);
} finally {
dialog.setVisible(false);
cleanupAfterModalDialogClosed(null);
dialog.dispose();
}
}
@Override