X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwincfg.c;h=d3201c4e18e50c2df85714a17776065d3719c88d;hb=01a7673ae9b20274184c3a7dac690055ba2cd24c;hp=516f0a3d161a3396308e24a75ec53f3c0056de50;hpb=caf4100ff3ce7a18e6149f1a205f1531255b2f7e;p=PuTTY.git diff --git a/windows/wincfg.c b/windows/wincfg.c index 516f0a3d..d3201c4e 100644 --- a/windows/wincfg.c +++ b/windows/wincfg.c @@ -382,9 +382,11 @@ void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help, * $XAUTHORITY is not reliable on Windows, so we provide a * means to override it. */ - s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding"); - ctrl_filesel(s, "X authority file for local display", 't', - NULL, FALSE, "Select X authority file", - HELPCTX(ssh_tunnels_xauthority), - dlg_stdfilesel_handler, I(offsetof(Config, xauthfile))); + if (backend_from_proto(PROT_SSH)) { + s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding"); + ctrl_filesel(s, "X authority file for local display", 't', + NULL, FALSE, "Select X authority file", + HELPCTX(ssh_tunnels_xauthority), + dlg_stdfilesel_handler, I(offsetof(Config, xauthfile))); + } }