mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 06:41:08 +00:00
Fix crash pressing keys when the program is closing
This commit is contained in:
parent
70ea54aa20
commit
5d6bdf5462
@ -947,7 +947,7 @@ bool Manager::onProcessMessage(Message* msg)
|
||||
}
|
||||
|
||||
// Check the focus movement for foreground (non-desktop) windows.
|
||||
if (win->isForeground()) {
|
||||
if (win && win->isForeground()) {
|
||||
if (msg->type() == kKeyDownMessage)
|
||||
move_focus(this, msg);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user