Commit ba6baad9 authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Fix crash when closing a tab.

TabbedViewWidget::removePage is called twice for the same page, which
leads to crash on the second run. It is called by those two signals in

connect(disconnectAction, SIGNAL(triggered()), SLOT(disconnectHost()));
connect(view, SIGNAL(disconnected()), this, SLOT(disconnectHost()));

BUG: 398878
parent c390f8fb
......@@ -158,6 +158,9 @@ int TabbedViewWidget::insertTab(int index, QWidget *page, const QIcon &icon, con
void TabbedViewWidget::removePage(QWidget *page)
int index = QTabWidget::indexOf(page);
if (index == -1) {
m_model->beginRemoveRows(QModelIndex(), index, index);
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