Fix usage of custom connection settings
- The custom port which is currently displayed in the portField is correctly set when it has the focus and the enter button is clicked.
- The entries for the custom host and port are removed from the settings file after a successful connection attempt if they are not set (empty string for host, 0 for port).
Edited by Melvin Keskin