Commit bd935945 authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Kurt Hindenburg
Browse files

Don't crash when the current session dies

parent 2bc3c973
......@@ -176,6 +176,10 @@ void SSHManagerModel::setSessionController(Konsole::SessionController *controlle
m_session = controller->session();
connect(m_session, &QObject::destroyed, this, [this] {
m_session = nullptr;
connect(m_session, &Konsole::Session::hostnameChanged, this, &SSHManagerModel::triggerProfileChange);
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