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:
Use the real session data instead of an empty one
Pressing Cancel prevents connection
Pressing Ok acts the same as Connect if hostname is not empty, otherwise it prevents connection
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 pressingOk
prevents connection.This PR makes this fixes/changes:
Cancel
prevents connectionOk
acts the same asConnect
if hostname is not empty, otherwise it prevents connection