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

Fix misbehaviour when connecting a session with an empty hostname #476

Merged
merged 1 commit into from
May 28, 2024

Conversation

ssvine
Copy link
Contributor

@ssvine ssvine commented May 25, 2024

When a saved session has an empty hostname, connecting to such a session brings up a session edit dialog (to fill missing parameters), but this dialog is not based on the saved session data. Also, pressing Cancel in this popped up dialog does not prevent connection, but pressing Ok prevents connection.

This PR makes this fixes/changes:

  1. Use the real session data instead of an empty one
  2. Pressing Cancel prevents connection
  3. Pressing Ok acts the same as Connect if hostname is not empty, otherwise it prevents connection
  4. Clean redundant code

1. Use real session data instead of empty one
2. Pressing Cancel prevents connection
3. Pressing Ok acts the same as Connect
4. Remove redundant code
Copy link

sonarcloud bot commented May 25, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@michaellukashov michaellukashov merged commit 96723fe into michaellukashov:main May 28, 2024
2 checks passed
@ssvine ssvine deleted the fix-empty-hostname branch May 28, 2024 16:40
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.

2 participants