mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 01:40:13 +00:00
Don't crash when removing the plugin of the first tab.
This commit is contained in:
parent
6a06b8ee95
commit
1a75899790
1 changed files with 1 additions and 1 deletions
|
@ -135,8 +135,8 @@ void ContextManager::removeContextObject(IContext *context)
|
||||||
|
|
||||||
const int index = indexOf(context->id());
|
const int index = indexOf(context->id());
|
||||||
QWidget *widget = d->m_tabWidget->widget(index);
|
QWidget *widget = d->m_tabWidget->widget(index);
|
||||||
d->m_tabWidget->removeTab(index);
|
|
||||||
d->m_contexts.remove(index);
|
d->m_contexts.remove(index);
|
||||||
|
d->m_tabWidget->removeTab(index);
|
||||||
delete widget;
|
delete widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue