Sfoglia il codice sorgente

Support for core changes.

pull/464/head
Chris Smith 8 anni fa
parent
commit
b6e76b8ee0

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/AwayLabel.java Vedi File

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

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/TypingLabel.java Vedi File

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

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/frames/TextFrame.java Vedi File

@@ -486,7 +486,7 @@ public abstract class TextFrame extends JPanel implements Window, TextPaneListen
486 486
 
487 487
     @Handler(invocation = EdtHandlerInvocation.class)
488 488
     public void windowClosing(final FrameClosingEvent event) {
489
-        if (event.getContainer().equals(getContainer())) {
489
+        if (event.getSource().equals(getContainer())) {
490 490
             if (popout) {
491 491
                 setPopout(false);
492 492
             }

Loading…
Annulla
Salva