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
3c518040
Commit
3c518040
authored
Nov 30, 2021
by
Tomaz Canabrava
Browse files
Do not allow to remove ssh entries from ssh/config
If the user removed those entries, they would be repopulated later on.
parent
dc6cb83e
Pipeline
#103512
passed with stage
in 2 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagerpluginwidget.cpp
View file @
3c518040
...
...
@@ -382,7 +382,8 @@ void SSHManagerTreeWidget::handleTreeClick(Qt::MouseButton btn, const QModelInde
const
auto
item
=
d
->
model
->
itemFromIndex
(
sourceIdx
);
const
auto
data
=
item
->
data
(
SSHManagerModel
::
SSHRole
).
value
<
SSHConfigurationData
>
();
ui
->
btnEdit
->
setEnabled
(
true
);
ui
->
btnRemove
->
setEnabled
(
!
data
.
importedFromSshConfig
);
ui
->
btnRemove
->
setToolTip
(
data
.
importedFromSshConfig
?
i18n
(
"You can't remove an automatically added entry."
)
:
i18n
(
"Remove selected entry"
));
if
(
ui
->
sshInfoPane
->
isVisible
())
{
handleImportedData
(
data
.
importedFromSshConfig
);
editSshInfo
();
...
...
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