mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
status bar: prevent progress leaks via myProgressIcon
This commit is contained in:
+5
@@ -586,6 +586,11 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
|
||||
add(myRefreshAndInfoPanel, BorderLayout.CENTER);
|
||||
|
||||
myProgressIcon.suspend();
|
||||
Container iconParent = myProgressIcon.getParent();
|
||||
if (iconParent != null) {
|
||||
iconParent.remove(myProgressIcon); // to prevent leaks to this removed parent via progress icon
|
||||
}
|
||||
|
||||
myRefreshAndInfoPanel.revalidate();
|
||||
myRefreshAndInfoPanel.repaint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user