Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KMail
Commits
68c9eb0c
Commit
68c9eb0c
authored
Nov 01, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct boolean
parent
3055a933
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/kmkernel.cpp
src/kmkernel.cpp
+1
-1
src/tests/dbustest.cpp
src/tests/dbustest.cpp
+2
-2
No files found.
src/kmkernel.cpp
View file @
68c9eb0c
...
...
@@ -1168,7 +1168,7 @@ void KMKernel::action(bool mailto, bool check, bool startInTray, const QString &
const
QString
&
inReplyTo
,
const
QString
&
identity
)
{
if
(
mailto
)
{
openComposer
(
to
,
cc
,
bcc
,
subj
,
body
,
0
,
openComposer
(
to
,
cc
,
bcc
,
subj
,
body
,
false
,
messageFile
.
toLocalFile
(),
QUrl
::
toStringList
(
attachURLs
),
customHeaders
,
replyTo
,
inReplyTo
,
identity
);
}
else
{
...
...
src/tests/dbustest.cpp
View file @
68c9eb0c
...
...
@@ -16,9 +16,9 @@ int main(int argc, char **argv)
parser
.
process
(
app
);
OrgKdeKmailKmailInterface
kmailInterface
(
QStringLiteral
(
"org.kde.kmail"
),
QStringLiteral
(
"/KMail"
),
QDBusConnection
::
sessionBus
());
kmailInterface
.
openComposer
(
QStringLiteral
(
"to 1"
),
QString
(),
QString
(),
QStringLiteral
(
"First test"
),
QStringLiteral
(
"simple openComp call"
),
0
);
kmailInterface
.
openComposer
(
QStringLiteral
(
"to 1"
),
QString
(),
QString
(),
QStringLiteral
(
"First test"
),
QStringLiteral
(
"simple openComp call"
),
false
);
QDBusReply
<
QDBusObjectPath
>
composerDbusPath
=
kmailInterface
.
openComposer
(
QStringLiteral
(
"to 2"
),
QString
(),
QString
(),
QStringLiteral
(
"Second test"
),
QStringLiteral
(
"DBUS ref call"
),
0
);
QDBusReply
<
QDBusObjectPath
>
composerDbusPath
=
kmailInterface
.
openComposer
(
QStringLiteral
(
"to 2"
),
QString
(),
QString
(),
QStringLiteral
(
"Second test"
),
QStringLiteral
(
"DBUS ref call"
),
false
);
if
(
!
composerDbusPath
.
isValid
())
{
qDebug
()
<<
"We can't connect to kmail"
;
...
...
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