]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed issue where viewer was not honoring cmd line arg SendLocalUsername
authorBrian Hinz <bphinz@users.sourceforge.net>
Thu, 31 May 2012 04:41:16 +0000 (04:41 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Thu, 31 May 2012 04:41:16 +0000 (04:41 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4919 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/CConn.java

index e3ab176347ab022c8de8d8e479b7645b1f39f81d..736994b1732bc3f0a20f5b55eb0264c57163e827 100644 (file)
@@ -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;
           }
         }