Commit b355a844 authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Simplify TabbedViewContainer::disconnectTerminalDisplay()

parent 7c028a10
......@@ -379,17 +379,7 @@ void TabbedViewContainer::connectTerminalDisplay(TerminalDisplay *display)
void TabbedViewContainer::disconnectTerminalDisplay(TerminalDisplay *display)
{
auto item = display->sessionController();
disconnect(item, &Konsole::SessionController::viewFocused, this,
&Konsole::TabbedViewContainer::currentSessionControllerChanged);
disconnect(item, &Konsole::ViewProperties::titleChanged, this,
&Konsole::TabbedViewContainer::updateTitle);
disconnect(item, &Konsole::ViewProperties::iconChanged, this,
&Konsole::TabbedViewContainer::updateIcon);
disconnect(item, &Konsole::ViewProperties::activity, this,
&Konsole::TabbedViewContainer::updateActivity);
item->disconnect(this);
}
void TabbedViewContainer::viewDestroyed(QObject *view)
......
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