mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 15:20:31 -04:00
work around calling focus from ctor path. (#1207)
This commit is contained in:
parent
830fea63ed
commit
7b1541d2e8
3 changed files with 22 additions and 14 deletions
|
@ -177,6 +177,8 @@ const std::vector<Widget*>& Widget::children() const {
|
|||
}
|
||||
|
||||
Context& Widget::context() const {
|
||||
chDbgAssert(parent_, "parent_ is null",
|
||||
"Check that parent isn't null before deref.");
|
||||
return parent()->context();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue