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
92dd4ee8
Commit
92dd4ee8
authored
Nov 24, 2021
by
Tomaz Canabrava
Committed by
Ahmad Samir
Nov 24, 2021
Browse files
Fix reading profile and username on the SSH config
parent
1ee961e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagermodel.cpp
View file @
92dd4ee8
...
...
@@ -115,7 +115,8 @@ void SSHManagerModel::load()
data
.
host
=
sessionGroup
.
readEntry
(
"hostname"
);
data
.
name
=
sessionGroup
.
readEntry
(
"identifier"
);
data
.
port
=
sessionGroup
.
readEntry
(
"port"
);
data
.
profileName
=
sessionGroup
.
readEntry
(
"profilename"
);
data
.
profileName
=
sessionGroup
.
readEntry
(
"profileName"
);
data
.
username
=
sessionGroup
.
readEntry
(
"username"
);
data
.
sshKey
=
sessionGroup
.
readEntry
(
"sshkey"
);
data
.
useSshConfig
=
sessionGroup
.
readEntry
<
bool
>
(
"useSshConfig"
,
false
);
data
.
importedFromSshConfig
=
sessionGroup
.
readEntry
<
bool
>
(
"importedFromSshConfig"
,
false
);
...
...
@@ -145,6 +146,7 @@ void SSHManagerModel::save()
sshGroup
.
writeEntry
(
"profileName"
,
data
.
profileName
.
trimmed
());
sshGroup
.
writeEntry
(
"sshkey"
,
data
.
sshKey
.
trimmed
());
sshGroup
.
writeEntry
(
"useSshConfig"
,
data
.
useSshConfig
);
sshGroup
.
writeEntry
(
"username"
,
data
.
username
);
sshGroup
.
writeEntry
(
"importedFromSshConfig"
,
data
.
importedFromSshConfig
);
sshGroup
.
sync
();
}
...
...
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