Commit 26d81458 authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Indicate status of item flag update


Signed-off-by: Krzysztof Nowicki's avatarKrzysztof Nowicki <krissn@op.pl>
parent f3164fd0
/*
SPDX-FileCopyrightText: 2015-2018 Krzysztof Nowicki <krissn@op.pl>
SPDX-FileCopyrightText: 2015-2019 Krzysztof Nowicki <krissn@op.pl>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
......@@ -532,6 +532,8 @@ void EwsResource::itemsFlagsChanged(const Akonadi::Item::List &items, const QSet
{
qCDebug(EWSRES_AGENTIF_LOG) << "itemsFlagsChanged: start" << items << addedFlags << removedFlags;
Q_EMIT status(Running, i18nc("@info:status", "Updating item flags"));
auto job = new EwsModifyItemFlagsJob(mEwsClient, this, items, addedFlags, removedFlags);
connect(job, &EwsModifyItemFlagsJob::result, this, &EwsResource::itemModifyFlagsRequestFinished);
job->start();
......@@ -552,6 +554,8 @@ void EwsResource::itemModifyFlagsRequestFinished(KJob *job)
return;
}
emitReadyStatus();
qCDebug(EWSRES_AGENTIF_LOG) << "itemsFlagsChanged: done";
changesCommitted(req->items());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment