Don't crash when removing the plugin of the first tab.

This commit is contained in:
dfighter1985 2014-06-08 21:56:31 +02:00
parent bbfd0e15cb
commit 4a381e857d

View file

@ -135,8 +135,8 @@ void ContextManager::removeContextObject(IContext *context)
const int index = indexOf(context->id());
QWidget *widget = d->m_tabWidget->widget(index);
d->m_tabWidget->removeTab(index);
d->m_contexts.remove(index);
d->m_tabWidget->removeTab(index);
delete widget;
}