Fix crash pressing keys when the program is closing

This commit is contained in:
David Capello 2015-06-23 09:50:04 -03:00
parent 70ea54aa20
commit 5d6bdf5462

View File

@ -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;