Tweak to r7635: when changing between protocols in the configuration dialog
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 14 Jan 2011 19:57:00 +0000 (19:57 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 14 Jan 2011 19:57:00 +0000 (19:57 +0000)
commita28d45e3baaeace980ede6d70f8df0261275e0b5
tree8d2b77288c3801929a85d0979a5b9196f6e7be26
parent3be09718d4bebadd05e4b6e1d2932f7b5b2df2fa
Tweak to r7635: when changing between protocols in the configuration dialog
and avoiding trashing a non-default port, don't treat a port of 0 as special;
this was causing defaults to "freeze in" for sequences of clicks like SSH,
Raw, Telnet.
Arrange that a port of 0 (which in a backend indicates no default) is displayed
as a blank in the port box, to make this less jarring.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9077 cda61777-01e9-0310-a592-d414129be87e
config.c