Fix key variable not initialised (#4790)
This commit is contained in:
committed by
Bertrand Songis
parent
b0b270963c
commit
471c38628f
@@ -284,6 +284,9 @@ void OpenTxSimulator::rotaryEncoderEvent(int steps)
|
||||
key = KEY_MINUS;
|
||||
else if (steps < 0)
|
||||
key = KEY_PLUS;
|
||||
else
|
||||
// Should not happen but Clang complains that key is unset otherwise
|
||||
return;
|
||||
|
||||
setKey(key, 1);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
|
||||
|
||||
Reference in New Issue
Block a user