mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
PL-10650 ConcurrentModificationException in WindowBreadCrumbs
This commit is contained in:
parent
6f03ec0613
commit
264740809b
@ -82,7 +82,7 @@ public class WindowBreadCrumbs extends JPanel {
|
||||
}
|
||||
|
||||
private void fireListeners(Window window) {
|
||||
for (Listener listener : listeners) {
|
||||
for (Listener listener : listeners.toArray(new Listener[listeners.size()])) {
|
||||
listener.windowClick(window);
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public class WindowBreadCrumbs extends CssLayout {
|
||||
super.setVisible(false);
|
||||
}
|
||||
|
||||
addAttachListener((AttachListener) event ->
|
||||
addAttachListener(event ->
|
||||
adjustParentStyles()
|
||||
);
|
||||
|
||||
@ -82,7 +82,7 @@ public class WindowBreadCrumbs extends CssLayout {
|
||||
linksLayout.setSizeUndefined();
|
||||
|
||||
if (!tabbedMode) {
|
||||
closeBtn = new CubaButton("", (Button.ClickListener) event -> {
|
||||
closeBtn = new CubaButton("", event -> {
|
||||
Window window = getCurrentWindow();
|
||||
if (!isCloseWithCloseButtonPrevented(window)) {
|
||||
window.close(Window.CLOSE_ACTION_ID);
|
||||
@ -216,7 +216,7 @@ public class WindowBreadCrumbs extends CssLayout {
|
||||
}
|
||||
|
||||
protected void fireListeners(Window window) {
|
||||
for (Listener listener : listeners) {
|
||||
for (Listener listener : listeners.toArray(new Listener[listeners.size()])) {
|
||||
listener.windowClick(window);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user