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
PIM
Kleopatra
Commits
721e9825
Commit
721e9825
authored
Dec 03, 2021
by
Ingo Klöcker
Committed by
Ingo Klöcker
Dec 03, 2021
Browse files
Reset OpenPGP keyserver to default on empty value
GnuPG-bug-id: 5711
parent
96928c1e
Pipeline
#104882
passed with stage
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/conf/dirservconfigpage.cpp
View file @
721e9825
...
...
@@ -352,9 +352,13 @@ void DirectoryServicesConfigurationPage::save()
}
if
(
mOpenPGPServiceEntry
)
{
const
auto
keyserver
=
mOpenPGPKeyserverEdit
->
text
();
const
auto
keyserverUrl
=
keyserver
.
contains
(
QLatin1String
{
"://"
})
?
keyserver
:
(
QLatin1String
{
"hkps://"
}
+
keyserver
);
mOpenPGPServiceEntry
->
setStringValue
(
keyserverUrl
);
const
auto
keyserver
=
mOpenPGPKeyserverEdit
->
text
().
trimmed
();
if
(
keyserver
.
isEmpty
())
{
mOpenPGPServiceEntry
->
resetToDefault
();
}
else
{
const
auto
keyserverUrl
=
keyserver
.
contains
(
QLatin1String
{
"://"
})
?
keyserver
:
(
QLatin1String
{
"hkps://"
}
+
keyserver
);
mOpenPGPServiceEntry
->
setStringValue
(
keyserverUrl
);
}
}
const
QTime
time
{
mTimeout
->
time
()};
...
...
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