]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Make sure one of the Local/Remote port forwarding radio buttons
authorSimon Tatham <anakin@pobox.com>
Sat, 22 Mar 2003 09:32:49 +0000 (09:32 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 22 Mar 2003 09:32:49 +0000 (09:32 +0000)
actually starts off selected!

[originally from svn r2973]

config.c

index 784268c72536446d60ee95764c0dd9bb5bcb1bee..185529cf7efd443d006e41e7cdd98604dcd928d4 100644 (file)
--- a/config.c
+++ b/config.c
@@ -596,6 +596,11 @@ static void portfwd_handler(union control *ctrl, void *dlg,
                p += strlen(p) + 1;
            }
            dlg_update_done(ctrl, dlg);
+       } else if (ctrl == pfd->direction) {
+           /*
+            * Default is Local.
+            */
+           dlg_radiobutton_set(ctrl, dlg, 0);
        }
     } else if (event == EVENT_ACTION) {
        if (ctrl == pfd->addbutton) {