summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-16 08:20:06 +0200
committerMontel Laurent <[email protected]>2017-10-16 08:20:06 +0200
commit17e27c28d3960d52e028d738217dd208143e3e8b (patch)
tree4dcc24aa884048f8fc7da542526dff742da838df
parent57d2257c0ef7b5d6d994f6fb4e4fbbe55fe9ab06 (diff)
Remove extra Q_EMIT here
-rw-r--r--plugins/messageviewerplugins/createtodoplugin/createtodojob.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/messageviewerplugins/createtodoplugin/createtodojob.cpp b/plugins/messageviewerplugins/createtodoplugin/createtodojob.cpp
index 469bb92..da6850a 100644
--- a/plugins/messageviewerplugins/createtodoplugin/createtodojob.cpp
+++ b/plugins/messageviewerplugins/createtodoplugin/createtodojob.cpp
@@ -61,7 +61,7 @@ void CreateTodoJob::slotFetchDone(KJob *job)
mItem = fetchJob->items().at(0);
} else {
qCDebug(CREATETODOPLUGIN_LOG) << " createTodo Error during fetch: " << job->errorString();
- Q_EMIT emitResult();
+ emitResult();
return;
}
createTodo();
@@ -71,7 +71,7 @@ void CreateTodoJob::createTodo()
{
if (!mItem.hasPayload<KMime::Message::Ptr>()) {
qCDebug(CREATETODOPLUGIN_LOG) << " item has not payload";
- Q_EMIT emitResult();
+ emitResult();
return;
}
@@ -89,7 +89,7 @@ void CreateTodoJob::todoCreated(KJob *job)
qCDebug(CREATETODOPLUGIN_LOG) << "Error during create new Todo " << job->errorString();
setError(job->error());
setErrorText(job->errorText());
- Q_EMIT emitResult();
+ emitResult();
} else {
Akonadi::ItemCreateJob *createJob = static_cast<Akonadi::ItemCreateJob *>(job);
Akonadi::Relation relation(Akonadi::Relation::GENERIC, mItem, createJob->item());
@@ -103,5 +103,5 @@ void CreateTodoJob::relationCreated(KJob *job)
if (job->error()) {
qCDebug(CREATETODOPLUGIN_LOG) << "Error during create new Todo " << job->errorString();
}
- Q_EMIT emitResult();
+ emitResult();
}