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
PIM
PIM Messagelib
Commits
79cbe9fd
Commit
79cbe9fd
authored
Aug 03, 2021
by
Laurent Montel
😁
Browse files
Use qCDebug
parent
db37d0b2
Pipeline
#73145
passed with stage
in 25 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecomposer/src/composer/composerviewbase.cpp
View file @
79cbe9fd
...
...
@@ -632,7 +632,7 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome,
for
(
const
auto
&
k
:
p
.
second
)
{
const
auto
it
=
autocryptMap
.
find
(
k
.
primaryFingerprint
());
if
(
it
==
autocryptMap
.
end
())
{
qDebug
()
<<
"Adding "
<<
k
.
primaryFingerprint
()
<<
"via Export/Import"
;
q
C
Debug
(
MESSAGECOMPOSER_LOG
)
<<
"Adding "
<<
k
.
primaryFingerprint
()
<<
"via Export/Import"
;
auto
exportJob
=
proto
->
publicKeyExportJob
(
false
);
connect
(
exportJob
,
&
QGpgME
::
ExportJob
::
result
,
...
...
@@ -667,12 +667,12 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome,
exportJob
->
setExportFlags
(
GpgME
::
Context
::
ExportMinimal
);
#endif
}
else
{
qDebug
()
<<
"Adding "
<<
k
.
primaryFingerprint
()
<<
"from Autocrypt storage"
;
q
C
Debug
(
MESSAGECOMPOSER_LOG
)
<<
"Adding "
<<
k
.
primaryFingerprint
()
<<
"from Autocrypt storage"
;
const
auto
recipient
=
storage
->
getRecipient
(
it
->
second
.
toUtf8
());
auto
key
=
recipient
->
gpgKey
();
auto
keydata
=
recipient
->
gpgKeydata
();
if
(
QByteArray
(
key
.
primaryFingerprint
())
!=
QByteArray
(
k
.
primaryFingerprint
()))
{
qDebug
()
<<
"Using gossipkey"
;
q
C
Debug
(
MESSAGECOMPOSER_LOG
)
<<
"Using gossipkey"
;
keydata
=
recipient
->
gossipKeydata
();
}
auto
importJob
=
proto
->
importJob
();
...
...
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