Commit b51b3b50 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix wrong connections

We have to call the slots of the public class because those slots
check if the view is known or not known which prevents duplicate
connections.

This fixes a regression introduced with the port to the modern connect
calls.
parent 23e01d2c
Pipeline #182691 passed with stage
in 4 minutes and 1 second
......@@ -311,8 +311,8 @@ void KeyListController::Private::connectTabWidget()
[this](QAbstractItemView *view) { addView(view); });
m_connections.reserve(3);
m_connections.push_back(connect(tabWidget, &TabWidget::viewAdded, q, [this](QAbstractItemView *view) { addView(view);}));
m_connections.push_back(connect(tabWidget, &TabWidget::viewAboutToBeRemoved, q, [this](QAbstractItemView *view) { removeView(view); }));
m_connections.push_back(connect(tabWidget, &TabWidget::viewAdded, q, &KeyListController::addView));
m_connections.push_back(connect(tabWidget, &TabWidget::viewAboutToBeRemoved, q, &KeyListController::removeView));
m_connections.push_back(connect(tabWidget, &TabWidget::currentViewChanged, q, [this](QAbstractItemView *view) { slotCurrentViewChanged(view); }));
}
......
Supports Markdown
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