aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2012-08-31 02:15:35 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2012-08-31 02:15:35 +0000
commitf55361195bfa524b059817ec4539aad34280c8d0 (patch)
tree68dc5e33947f67dd9fc2fcacb8ce1ba7fa2ee5d9
parentd6d6187c7c748f4fb36f7b4f7b5894317876915f (diff)
downloadtigervnc-f55361195bfa524b059817ec4539aad34280c8d0.tar.gz
tigervnc-f55361195bfa524b059817ec4539aad34280c8d0.zip
fix initialization of dialog state variables
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4985 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--java/com/tigervnc/vncviewer/CConn.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java
index 22cbe1fc..0ad69067 100644
--- a/java/com/tigervnc/vncviewer/CConn.java
+++ b/java/com/tigervnc/vncviewer/CConn.java
@@ -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);