Skip to content

Commit

Permalink
Merge pull request #464 from csmith/event-refactoring
Browse files Browse the repository at this point in the history
Support for core changes.
  • Loading branch information
greboid committed Feb 24, 2016
2 parents ab2b512 + b6e76b8 commit 49c2859
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -90,7 +90,7 @@ private void updateVisibility(final boolean away) {

@Handler(invocation = EdtHandlerInvocation.class)
public void windowClosing(final FrameClosingEvent event) {
if (event.getContainer().equals(container)) {
if (event.getSource().equals(container)) {
container.getConfigManager().getBinder().unbind(this);
container.getEventBus().unsubscribe(this);
}
Expand Down
Expand Up @@ -91,7 +91,7 @@ public void componentRemoved(final FrameComponentRemovedEvent event) {

@Handler(invocation = EdtHandlerInvocation.class)
public void windowClosing(final FrameClosingEvent event) {
if (event.getContainer().equals(container)) {
if (event.getSource().equals(container)) {
container.getConfigManager().getBinder().unbind(this);
container.getEventBus().unsubscribe(this);
}
Expand Down
Expand Up @@ -486,7 +486,7 @@ private void updateBackgroundColour(final String value) {

@Handler(invocation = EdtHandlerInvocation.class)
public void windowClosing(final FrameClosingEvent event) {
if (event.getContainer().equals(getContainer())) {
if (event.getSource().equals(getContainer())) {
if (popout) {
setPopout(false);
}
Expand Down

0 comments on commit 49c2859

Please sign in to comment.