Просмотр исходного кода

Don't try and remove windows that don't exist in swing UI

Change-Id: Idac4020e7fa766f28f829f97310f2b0f9e7ba37f
Reviewed-on: http://gerrit.dmdirc.com/1775
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.5
Greg Holmes 13 лет назад
Родитель
Сommit
d349a2f5f2

+ 2
- 1
src/com/dmdirc/addons/ui_swing/framemanager/windowmenu/WindowMenuFrameManager.java Просмотреть файл

@@ -208,7 +208,8 @@ public final class WindowMenuFrameManager extends JMenu implements
208 208
                 item = menus.get(window.getContainer());
209 209
                 menus.remove(window.getContainer());
210 210
             } else {
211
-                item = null;
211
+                window.getContainer().removeSelectionListener(this);
212
+                return;
212 213
             }
213 214
             UIUtilities.invokeLater(new Runnable() {
214 215
 

Загрузка…
Отмена
Сохранить