mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 16:31:31 +00:00
Ensures safe startup.
This commit is contained in:
parent
be1c3e9136
commit
56e5491e5c
@ -759,7 +759,7 @@ void MainWindow::setWindowTitle() {
|
||||
|
||||
void MainWindow::changeEvent(QEvent *event) {
|
||||
// Clear current key state upon any window activation change.
|
||||
if(event->type() == QEvent::ActivationChange) {
|
||||
if(machine && event->type() == QEvent::ActivationChange) {
|
||||
const auto keyboardMachine = machine->keyboard_machine();
|
||||
if(keyboardMachine) {
|
||||
keyboardMachine->clear_all_keys();
|
||||
|
Loading…
Reference in New Issue
Block a user