mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Eliminate crash in Ctrl::GetOwner() when short live popup is being displayed (#315)
* Eliminate crash in Ctrl::GetOwner() when short live popup is being displayed * .review
This commit is contained in:
parent
0850a738d8
commit
ec98fe7179
1 changed files with 4 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ Ctrl *Ctrl::GetOwner()
|
|||
{
|
||||
GuiLock __;
|
||||
Top *top = GetTop();
|
||||
return IsOpen() ? top->owner : NULL;
|
||||
return top && IsOpen() ? top->owner : nullptr;
|
||||
}
|
||||
|
||||
Ctrl *Ctrl::GetActiveCtrl()
|
||||
|
|
@ -602,4 +602,6 @@ Vector<WString> SplitCmdLine__(const char *cmd)
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue