mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 10:07:43 +00:00
work around calling focus from ctor path. (#1207)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user