mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
WebTab: Correctly reparent children in destructor
This commit is contained in:
parent
33b2f0f908
commit
8fe53f1c2c
@ -184,7 +184,8 @@ WebTab::~WebTab()
|
||||
emit m_parentTab->childTabRemoved(this);
|
||||
}
|
||||
|
||||
for (WebTab *child : qAsConst(m_childTabs)) {
|
||||
const auto childTabs = m_childTabs; // modified in loop
|
||||
for (WebTab *child : childTabs) {
|
||||
child->setParentTab(nullptr);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user