From 58a4c13ab1c0a215c5369b7ee60af50caa50d007 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 28 Mar 2018 12:33:22 +0200 Subject: [PATCH] Add missing break for LED state check The previous code would incorrectly also add support for QEMU key events if LED state was supported. --- common/rfb/ConnParams.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/common/rfb/ConnParams.cxx b/common/rfb/ConnParams.cxx index 23f02ed0..80b4a5ac 100644 --- a/common/rfb/ConnParams.cxx +++ b/common/rfb/ConnParams.cxx @@ -147,6 +147,7 @@ void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings) break; case pseudoEncodingLEDState: supportsLEDState = true; + break; case pseudoEncodingQEMUKeyEvent: supportsQEMUKeyEvent = true; break; -- 2.39.5