]> source.dussan.org Git - tigervnc.git/commitdiff
fix initialization of dialog state variables
authorBrian Hinz <bphinz@users.sourceforge.net>
Fri, 31 Aug 2012 02:15:35 +0000 (02:15 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Fri, 31 Aug 2012 02:15:35 +0000 (02:15 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4985 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/CConn.java

index 22cbe1fc139d9b60e1b27f3a01290e04d41456bf..0ad6906719548f33ad63eaf4264abff2d72a7a3a 100644 (file)
@@ -79,7 +79,7 @@ public class CConn extends CConnection
     pendingPFChange = false;
     currentEncoding = Encodings.encodingTight; lastServerEncoding = -1;
     fullColour = viewer.fullColour.getValue();
-    lowColourLevel = 2;
+    lowColourLevel = viewer.lowColourLevel.getValue();
     autoSelect = viewer.autoSelect.getValue();
     formatChange = false; encodingChange = false;
     fullScreen = viewer.fullScreen.getValue();
@@ -766,8 +766,8 @@ public class CConn extends CConnection
 
   public void setOptions() {
     int digit;
-    options.autoSelect.setSelected(viewer.autoSelect.getValue());
-    options.fullColour.setSelected(viewer.fullColour.getValue());
+    options.autoSelect.setSelected(autoSelect);
+    options.fullColour.setSelected(fullColour);
     options.veryLowColour.setSelected(!fullColour && lowColourLevel == 0);
     options.lowColour.setSelected(!fullColour && lowColourLevel == 1);
     options.mediumColour.setSelected(!fullColour && lowColourLevel == 2);