When the SSH panel disappears in puttytel, the Tunnels panel should too!
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 23 Jan 2001 14:20:04 +0000 (14:20 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 23 Jan 2001 14:20:04 +0000 (14:20 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@890 cda61777-01e9-0310-a592-d414129be87e

windlg.c

index 737305d..7a54654 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -1092,9 +1092,10 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg,
         if (dlgtype == 0) {
             treeview_insert(&tvfaff, 1, "Telnet");
             treeview_insert(&tvfaff, 1, "Rlogin");
-            if (backends[3].backend != NULL)
+            if (backends[3].backend != NULL) {
                 treeview_insert(&tvfaff, 1, "SSH");
-            treeview_insert(&tvfaff, 2, "Tunnels");
+                treeview_insert(&tvfaff, 2, "Tunnels");
+            }
         }
 
         /*