aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2012-05-31 04:41:16 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2012-05-31 04:41:16 +0000
commit4de10d0357e501d8c737cee1dfd405bf296cde7f (patch)
tree7d15592a2dc4e7c7142cea2f5c99aa2cc1a1adad
parentecd5ee772b84b898148afa0391e43dc1eeded79e (diff)
downloadtigervnc-4de10d0357e501d8c737cee1dfd405bf296cde7f.tar.gz
tigervnc-4de10d0357e501d8c737cee1dfd405bf296cde7f.zip
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
-rw-r--r--java/com/tigervnc/vncviewer/CConn.java7
1 files changed, 1 insertions, 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;
}
}