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
09c1100d
Commit
09c1100d
authored
Nov 08, 2021
by
Ingo Klöcker
Browse files
Set group config to use by KeyCache
GnuPG-bug-id: 5638
parent
42c9be0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
09c1100d
...
...
@@ -30,7 +30,7 @@ option(DISABLE_KWATCHGNUPG "Don't build the kwatchgnupg tool [default=OFF]" OFF)
# Standalone build. Find / include everything necessary.
set
(
KF5_MIN_VERSION
"5.87.0"
)
set
(
KMIME_VERSION
"5.18.80"
)
set
(
LIBKLEO_VERSION
"5.1
8.80
"
)
set
(
LIBKLEO_VERSION
"5.1
9.41
"
)
set
(
QT_REQUIRED_VERSION
"5.15.2"
)
set
(
GPGME_REQUIRED_VERSION
"1.13.1"
)
set
(
BOOST_REQUIRED_VERSION
"1.58"
)
...
...
src/kleopatraapplication.cpp
View file @
09c1100d
...
...
@@ -30,6 +30,7 @@
#include
<Libkleo/FileSystemWatcher>
#include
<Libkleo/KeyCache>
#include
<Libkleo/KeyGroupConfig>
#include
<Libkleo/Classify>
#ifdef HAVE_USABLE_ASSUAN
...
...
@@ -86,10 +87,11 @@ class KleopatraApplication::Private
KleopatraApplication
*
const
q
;
public:
explicit
Private
(
KleopatraApplication
*
qq
)
:
q
(
qq
),
ignoreNewInstance
(
true
),
firstNewInstance
(
true
),
sysTray
(
nullptr
)
:
q
(
qq
)
,
ignoreNewInstance
(
true
)
,
firstNewInstance
(
true
)
,
sysTray
(
nullptr
)
,
groupConfig
{
std
::
make_shared
<
KeyGroupConfig
>
(
QStringLiteral
(
"kleopatragroupsrc"
))}
{
}
~
Private
()
{
...
...
@@ -145,6 +147,7 @@ public:
#ifndef QT_NO_SYSTEMTRAYICON
SysTrayIcon
*
sysTray
;
#endif
std
::
shared_ptr
<
KeyGroupConfig
>
groupConfig
;
std
::
shared_ptr
<
KeyCache
>
keyCache
;
std
::
shared_ptr
<
Log
>
log
;
std
::
shared_ptr
<
FileSystemWatcher
>
watcher
;
...
...
@@ -159,7 +162,7 @@ public:
watcher
->
addPath
(
gnupgHomeDirectory
());
watcher
->
setDelay
(
1000
);
keyCache
->
addFileSystemWatcher
(
watcher
);
keyCache
->
setGroup
s
Config
(
QStringLiteral
(
"kleopatragroupsrc"
)
);
keyCache
->
setGroupConfig
(
groupConfig
);
keyCache
->
setGroupsEnabled
(
Settings
().
groupsEnabled
());
}
...
...
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