Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JBIDE-20463] reset token value when new connection is selected #744

Closed
wants to merge 1 commit into from
Closed

[JBIDE-20463] reset token value when new connection is selected #744

wants to merge 1 commit into from

Conversation

fbricon
Copy link
Member

@fbricon fbricon commented Aug 14, 2015

Signed-off-by: Fred Bricon fbricon@gmail.com

Signed-off-by: Fred Bricon <fbricon@gmail.com>
@@ -223,8 +222,7 @@ private void disposeBindings() {
@Override
protected void onSelectedConnectionChanged(IObservableValue selectedConnection) {
IConnection conn = (IConnection) selectedConnection.getValue();
if(!(conn instanceof Connection)) return;
detailViewModel.setSelectedConnection((Connection)conn);
detailViewModel.setSelectedConnection(conn);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove the instance check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, setSelectedConnection takes an IConnection argument, and the instance check prevents NewConnectionMarker instances to be set, which leads to the UI not being reset.

@jcantrill
Copy link
Contributor

@fbricon assuming it resolves the issue, it LGTM

@fbricon
Copy link
Member Author

fbricon commented Aug 17, 2015

Applied in master

@fbricon fbricon closed this Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants