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
Unmaintained
Network Management
Commits
a09ad42d
Commit
a09ad42d
authored
Jun 24, 2011
by
Lamarque Souza
Browse files
Save username from VPN configuration instead of defaulting to system's
user name. BUG: 269951
parent
19b093cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/internals/settings/vpnpersistence.cpp
View file @
a09ad42d
...
...
@@ -23,7 +23,7 @@ void VpnPersistence::load()
setting
->
setServiceType
(
m_config
->
readEntry
(
"ServiceType"
,
""
));
setting
->
setData
(
stringMapFromStringList
(
m_config
->
readEntry
(
"Data"
,
QStringList
())));
setting
->
setSecretsStorageType
(
stringMapFromStringList
(
m_config
->
readEntry
(
"SecretsStorageType"
,
QStringList
())));
setting
->
setUserName
(
KUser
().
loginName
(
));
setting
->
setUserName
(
m_config
->
readEntry
(
"UserName"
,
""
));
// SECRET
if
(
m_storageMode
==
ConnectionPersistence
::
PlainText
)
{
// the map is flattened to a list of key,value,key,value
...
...
@@ -40,6 +40,7 @@ void VpnPersistence::save()
m_config
->
writeEntry
(
"ServiceType"
,
setting
->
serviceType
());
m_config
->
writeEntry
(
"Data"
,
stringMapToStringList
(
setting
->
data
()));
m_config
->
writeEntry
(
"SecretsStorageType"
,
stringMapToStringList
(
setting
->
secretsStorageType
()));
m_config
->
writeEntry
(
"UserName"
,
setting
->
userName
());
// SECRET
if
(
m_storageMode
==
ConnectionPersistence
::
PlainText
)
{
/*
...
...
Write
Preview
Supports
Markdown
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