mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-15 05:31:30 +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) {
|
void MainWindow::changeEvent(QEvent *event) {
|
||||||
// Clear current key state upon any window activation change.
|
// 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();
|
const auto keyboardMachine = machine->keyboard_machine();
|
||||||
if(keyboardMachine) {
|
if(keyboardMachine) {
|
||||||
keyboardMachine->clear_all_keys();
|
keyboardMachine->clear_all_keys();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user