Commit acaabffd authored by Carlos Alves's avatar Carlos Alves
Browse files

Fix crash exiting all tabs at the same time

It was emitting a signal with a nullptr and updating an icon of a
nullptr as the TerminalDisplay was already deleted.

BUG: 431827
FIXED-IN: 20.12.2
parent a5f29806
......@@ -474,10 +474,12 @@ void TabbedViewContainer::currentTabChanged(int index)
if (index != -1) {
auto splitview = qobject_cast<ViewSplitter*>(widget(index));
auto view = splitview->activeTerminalDisplay();
emit activeViewChanged(view);
setTabActivity(index, false);
_tabIconState[splitview].notification = Session::NoNotification;
updateIcon(view->sessionController());
if (view != nullptr) {
emit activeViewChanged(view);
updateIcon(view->sessionController());
}
} else {
deleteLater();
}
......
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