Commit ebbedf00 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

It's not necessary to use Q_SLOTS here

parent 624c2918
Pipeline #190464 passed with stage
in 2 minutes and 55 seconds
......@@ -30,13 +30,11 @@ public:
~MarkAsCommand() override;
void execute() override;
private Q_SLOTS:
private:
void slotCollectionFetchDone(KJob *job);
void slotFetchDone(KJob *job);
void slotHelperDone(Result result);
void slotModifyItemDone();
private:
void markMessages();
std::unique_ptr<MarkAsCommandPrivate> const d;
......
......@@ -57,6 +57,7 @@ void MarkAsCommandHelper::slotModifyItemDone(KJob *job)
if (job && job->error()) {
qCDebug(AKONADIMIME_LOG) << " Error trying to set item status:" << job->errorText();
emitResult(Akonadi::CommandBase::Failed);
// FIXME ? continue or not if error ?
deleteLater();
} else {
if (mIndex > mItemsToModify.count()) {
......
......@@ -26,10 +26,8 @@ public:
~MoveCommand() override;
void execute() override;
private Q_SLOTS:
void slotMoveResult(KJob *job);
private:
void slotMoveResult(KJob *job);
std::unique_ptr<MoveCommandPrivate> const d;
};
}
......@@ -26,10 +26,10 @@ public:
void execute() override;
private Q_SLOTS:
void slotFetchDone(KJob *job);
void slotMoveDone(Akonadi::CommandBase::Result result);
private:
void slotFetchDone(KJob *job);
void moveMessages();
Akonadi::Collection trashCollectionFromResource(const Akonadi::Collection &col);
Akonadi::Collection trashCollectionFolder();
......
Supports Markdown
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