From f55361195bfa524b059817ec4539aad34280c8d0 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Fri, 31 Aug 2012 02:15:35 +0000 Subject: [PATCH] fix initialization of dialog state variables git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4985 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/vncviewer/CConn.java | 6 +++--- 1 file 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); -- 2.39.5