소스 검색

Ignore windows that SwingUI doesnt know about when the client is starting up

Fixes issue 4203

Change-Id: I9bd2789ab3014af1de13f9d1e3e70f345da6cb33
Reviewed-on: http://gerrit.dmdirc.com/1296
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.4
Simon Mott 14 년 전
부모
커밋
e827227310
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      src/com/dmdirc/addons/ui_swing/framemanager/buttonbar/ButtonBar.java

+ 3
- 1
src/com/dmdirc/addons/ui_swing/framemanager/buttonbar/ButtonBar.java 파일 보기

@@ -211,7 +211,9 @@ public final class ButtonBar implements FrameManager, ActionListener,
211 211
         for (FrameContainer<?> frame : windowCollection) {
212 212
             window = windowFactory.getSwingWindow(frame);
213 213
             parentWindow = windowFactory.getSwingWindow(frame.getParent());
214
-            windowAdded(parentWindow, window);
214
+            if (window != null) {
215
+                windowAdded(parentWindow, window);
216
+            }
215 217
 
216 218
             if (!frame.getChildren().isEmpty()) {
217 219
                 final ArrayList<FrameContainer<?>> childList = new ArrayList

Loading…
취소
저장