mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] In view, reinit subviews' superview at destruction
Change-Id: I5d131900ebc5b5ba18171a41c7bd61754770d8fd
This commit is contained in:
@@ -11,6 +11,12 @@ View::View() :
|
||||
}
|
||||
|
||||
View::~View() {
|
||||
for (int i = 0; i < numberOfSubviews(); i++) {
|
||||
View * subview = subviewAtIndex(i);
|
||||
if (subview != nullptr) {
|
||||
subview->m_superview = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void View::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
|
||||
Reference in New Issue
Block a user