Skip to content
GitLab
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
ec39a5cd
Commit
ec39a5cd
authored
Nov 30, 2021
by
Tomaz Canabrava
Browse files
Reset the sshConfig entity when it's deleted.
parent
b18d7c9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagermodel.cpp
View file @
ec39a5cd
...
...
@@ -194,6 +194,10 @@ Qt::ItemFlags SSHManagerModel::flags(const QModelIndex &index) const
void
SSHManagerModel
::
removeIndex
(
const
QModelIndex
&
idx
)
{
if
(
idx
.
data
(
Qt
::
DisplayRole
)
==
i18n
(
"SSH Config"
))
{
m_sshConfigTopLevelItem
=
nullptr
;
}
removeRow
(
idx
.
row
(),
idx
.
parent
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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