1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

WebTab: Correctly reparent children in destructor

This commit is contained in:
David Rosca 2018-01-30 17:41:37 +01:00
parent 33b2f0f908
commit 8fe53f1c2c
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -184,7 +184,8 @@ WebTab::~WebTab()
emit m_parentTab->childTabRemoved(this); 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); child->setParentTab(nullptr);
} }
} }