From 4de10d0357e501d8c737cee1dfd405bf296cde7f Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Thu, 31 May 2012 04:41:16 +0000 Subject: [PATCH] Fixed issue where viewer was not honoring cmd line arg SendLocalUsername git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4919 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/vncviewer/CConn.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index e3ab1763..736994b1 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -877,6 +877,7 @@ public class CConn extends CConnection options.acceptClipboard.setSelected(viewer.acceptClipboard.getValue()); options.sendClipboard.setSelected(viewer.sendClipboard.getValue()); options.menuKey.setSelectedItem(KeyEvent.getKeyText(menukey.getMenuKeyCode())); + options.sendLocalUsername.setSelected(viewer.sendLocalUsername.getValue()); if (state() == RFBSTATE_NORMAL) { options.shared.setEnabled(false); @@ -921,11 +922,9 @@ public class CConn extends CConnection switch ((Integer)iext.next()) { case Security.secTypePlain: options.secPlain.setSelected(true); - options.sendLocalUsername.setSelected(true); break; case Security.secTypeIdent: options.secIdent.setSelected(true); - options.sendLocalUsername.setSelected(true); break; case Security.secTypeTLSNone: options.encTLS.setSelected(true); @@ -938,12 +937,10 @@ public class CConn extends CConnection case Security.secTypeTLSPlain: options.encTLS.setSelected(true); options.secPlain.setSelected(true); - options.sendLocalUsername.setSelected(true); break; case Security.secTypeTLSIdent: options.encTLS.setSelected(true); options.secIdent.setSelected(true); - options.sendLocalUsername.setSelected(true); break; case Security.secTypeX509None: options.encX509.setSelected(true); @@ -956,12 +953,10 @@ public class CConn extends CConnection case Security.secTypeX509Plain: options.encX509.setSelected(true); options.secPlain.setSelected(true); - options.sendLocalUsername.setSelected(true); break; case Security.secTypeX509Ident: options.encX509.setSelected(true); options.secIdent.setSelected(true); - options.sendLocalUsername.setSelected(true); break; } } -- 2.39.5