Commit 3e25f61e authored by Eike Ziller's avatar Eike Ziller Committed by David Schulz
Browse files

Fix crash when closing extra editor windows.



Change-Id: If1aaceabedc76bb82e90eecb2a83f07c5d114d02
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent a033beec
......@@ -895,11 +895,11 @@ void EditorManager::rootDestroyed(QObject *root)
for (int i = 0; i < d->m_root.size(); ++i) {
SplitterOrView *r = d->m_root.at(i);
if (r == root) {
d->m_root.removeAll(r);
IContext *context = d->m_rootContext.at(i);
d->m_root.removeAt(i);
IContext *context = d->m_rootContext.takeAt(i);
ICore::removeContextObject(context);
delete context;
--i; // we removed the current one
} else if (r->window() == activeWin) {
newActiveRoot = r;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment