Ver código fonte

Merge pull request #464 from csmith/event-refactoring

Support for core changes.
pull/465/head
Greg Holmes 8 anos atrás
pai
commit
49c2859795

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/AwayLabel.java Ver arquivo

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 Ver arquivo

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 Ver arquivo

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
             }

Carregando…
Cancelar
Salvar