Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
bd935945
Commit
bd935945
authored
Nov 25, 2021
by
Tomaz Canabrava
Committed by
Kurt Hindenburg
Jan 26, 2022
Browse files
Don't crash when the current session dies
parent
2bc3c973
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagermodel.cpp
View file @
bd935945
...
...
@@ -176,6 +176,10 @@ void SSHManagerModel::setSessionController(Konsole::SessionController *controlle
m_session
=
controller
->
session
();
Q_ASSERT
(
m_session
);
connect
(
m_session
,
&
QObject
::
destroyed
,
this
,
[
this
]
{
m_session
=
nullptr
;
});
connect
(
m_session
,
&
Konsole
::
Session
::
hostnameChanged
,
this
,
&
SSHManagerModel
::
triggerProfileChange
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment