瀏覽代碼

Support for core changes.

pull/464/head
Chris Smith 8 年之前
父節點
當前提交
b6e76b8ee0

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/AwayLabel.java 查看文件

90
 
90
 
91
     @Handler(invocation = EdtHandlerInvocation.class)
91
     @Handler(invocation = EdtHandlerInvocation.class)
92
     public void windowClosing(final FrameClosingEvent event) {
92
     public void windowClosing(final FrameClosingEvent event) {
93
-        if (event.getContainer().equals(container)) {
93
+        if (event.getSource().equals(container)) {
94
             container.getConfigManager().getBinder().unbind(this);
94
             container.getConfigManager().getBinder().unbind(this);
95
             container.getEventBus().unsubscribe(this);
95
             container.getEventBus().unsubscribe(this);
96
         }
96
         }

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/TypingLabel.java 查看文件

91
 
91
 
92
     @Handler(invocation = EdtHandlerInvocation.class)
92
     @Handler(invocation = EdtHandlerInvocation.class)
93
     public void windowClosing(final FrameClosingEvent event) {
93
     public void windowClosing(final FrameClosingEvent event) {
94
-        if (event.getContainer().equals(container)) {
94
+        if (event.getSource().equals(container)) {
95
             container.getConfigManager().getBinder().unbind(this);
95
             container.getConfigManager().getBinder().unbind(this);
96
             container.getEventBus().unsubscribe(this);
96
             container.getEventBus().unsubscribe(this);
97
         }
97
         }

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java 查看文件

486
 
486
 
487
     @Handler(invocation = EdtHandlerInvocation.class)
487
     @Handler(invocation = EdtHandlerInvocation.class)
488
     public void windowClosing(final FrameClosingEvent event) {
488
     public void windowClosing(final FrameClosingEvent event) {
489
-        if (event.getContainer().equals(getContainer())) {
489
+        if (event.getSource().equals(getContainer())) {
490
             if (popout) {
490
             if (popout) {
491
                 setPopout(false);
491
                 setPopout(false);
492
             }
492
             }

Loading…
取消
儲存