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
Unmaintained
KDE Pim
Commits
4e15f15f
Commit
4e15f15f
authored
Nov 28, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it async
parent
67a7dd54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
messageviewer/job/createeventjob.cpp
messageviewer/job/createeventjob.cpp
+1
-8
messageviewer/job/createtodojob.cpp
messageviewer/job/createtodojob.cpp
+1
-8
No files found.
messageviewer/job/createeventjob.cpp
View file @
4e15f15f
...
@@ -47,14 +47,6 @@ void CreateEventJob::start()
...
@@ -47,14 +47,6 @@ void CreateEventJob::start()
Akonadi
::
ItemFetchJob
*
job
=
new
Akonadi
::
ItemFetchJob
(
mItem
);
Akonadi
::
ItemFetchJob
*
job
=
new
Akonadi
::
ItemFetchJob
(
mItem
);
job
->
fetchScope
().
fetchFullPayload
();
job
->
fetchScope
().
fetchFullPayload
();
connect
(
job
,
SIGNAL
(
result
(
KJob
*
)),
this
,
SLOT
(
slotFetchDone
(
KJob
*
))
);
connect
(
job
,
SIGNAL
(
result
(
KJob
*
)),
this
,
SLOT
(
slotFetchDone
(
KJob
*
))
);
if
(
job
->
exec
()
)
{
if
(
job
->
items
().
count
()
==
1
)
{
mItem
=
job
->
items
().
first
();
}
}
else
{
qDebug
()
<<
" createTodo Error during fetch: "
<<
job
->
errorString
();
}
}
else
{
}
else
{
createEvent
();
createEvent
();
}
}
...
@@ -67,6 +59,7 @@ void CreateEventJob::slotFetchDone(KJob *job)
...
@@ -67,6 +59,7 @@ void CreateEventJob::slotFetchDone(KJob *job)
if
(
fetchJob
->
items
().
count
()
==
1
)
{
if
(
fetchJob
->
items
().
count
()
==
1
)
{
mItem
=
fetchJob
->
items
().
first
();
mItem
=
fetchJob
->
items
().
first
();
}
else
{
}
else
{
qDebug
()
<<
" createTodo Error during fetch: "
<<
job
->
errorString
();
Q_EMIT
emitResult
();
Q_EMIT
emitResult
();
return
;
return
;
}
}
...
...
messageviewer/job/createtodojob.cpp
View file @
4e15f15f
...
@@ -47,14 +47,6 @@ void CreateTodoJob::start()
...
@@ -47,14 +47,6 @@ void CreateTodoJob::start()
Akonadi
::
ItemFetchJob
*
job
=
new
Akonadi
::
ItemFetchJob
(
mItem
);
Akonadi
::
ItemFetchJob
*
job
=
new
Akonadi
::
ItemFetchJob
(
mItem
);
job
->
fetchScope
().
fetchFullPayload
();
job
->
fetchScope
().
fetchFullPayload
();
connect
(
job
,
SIGNAL
(
result
(
KJob
*
)),
this
,
SLOT
(
slotFetchDone
(
KJob
*
))
);
connect
(
job
,
SIGNAL
(
result
(
KJob
*
)),
this
,
SLOT
(
slotFetchDone
(
KJob
*
))
);
if
(
job
->
exec
()
)
{
if
(
job
->
items
().
count
()
==
1
)
{
mItem
=
job
->
items
().
first
();
}
}
else
{
qDebug
()
<<
" createTodo Error during fetch: "
<<
job
->
errorString
();
}
}
else
{
}
else
{
createTodo
();
createTodo
();
}
}
...
@@ -67,6 +59,7 @@ void CreateTodoJob::slotFetchDone(KJob *job)
...
@@ -67,6 +59,7 @@ void CreateTodoJob::slotFetchDone(KJob *job)
if
(
fetchJob
->
items
().
count
()
==
1
)
{
if
(
fetchJob
->
items
().
count
()
==
1
)
{
mItem
=
fetchJob
->
items
().
first
();
mItem
=
fetchJob
->
items
().
first
();
}
else
{
}
else
{
qDebug
()
<<
" createTodo Error during fetch: "
<<
job
->
errorString
();
Q_EMIT
emitResult
();
Q_EMIT
emitResult
();
return
;
return
;
}
}
...
...
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