Revision: 4919
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4919&view=rev
Author:   bphinz
Date:     2012-05-31 04:41:16 +0000 (Thu, 31 May 2012)
Log Message:
-----------
Fixed issue where viewer was not honoring cmd line arg SendLocalUsername

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/CConn.java

Modified: trunk/java/com/tigervnc/vncviewer/CConn.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/CConn.java        2012-05-23 04:21:09 UTC 
(rev 4918)
+++ trunk/java/com/tigervnc/vncviewer/CConn.java        2012-05-31 04:41:16 UTC 
(rev 4919)
@@ -877,6 +877,7 @@
     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 @@
           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 @@
           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 @@
           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;
           }
         }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to