mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Make sure to not service a view event if the first responder is NULL
This commit is contained in:
parent
395c16ce24
commit
d3a4407391
1 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,9 @@ void UIWindowManager::ViewEvent
|
|||
if (!view) {
|
||||
// use the first responder instead
|
||||
view = m_firstResponder;
|
||||
if (!view) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!view->isEnabled()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue