Commit 23aa9f14 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use directly connect

parent 385b4157
Pipeline #212676 passed with stage
in 4 minutes and 59 seconds
......@@ -1682,7 +1682,7 @@ void KMMainWidget::moveMessageSelected(MessageList::Core::MessageItemSetReferenc
mMessagePane->markMessageItemsAsAboutToBeRemoved(ref, true);
// And stuff them into a KMMoveCommand :)
auto command = new KMMoveCommand(dest, selectMsg, ref);
QObject::connect(command, &KMMoveCommand::moveDone, this, &KMMainWidget::slotMoveMessagesCompleted);
connect(command, &KMMoveCommand::moveDone, this, &KMMainWidget::slotMoveMessagesCompleted);
command->start();
if (dest.isValid()) {
......@@ -1809,7 +1809,7 @@ void KMMainWidget::copyMessageSelected(const Akonadi::Item::List &selectMsg, con
}
// And stuff them into a KMCopyCommand :)
auto command = new KMCopyCommand(dest, selectMsg);
QObject::connect(command, &KMCommand::completed, this, &KMMainWidget::slotCopyMessagesCompleted);
connect(command, &KMCommand::completed, this, &KMMainWidget::slotCopyMessagesCompleted);
command->start();
showMessageActivities(i18n("Copying messages..."));
}
......@@ -1875,7 +1875,7 @@ void KMMainWidget::trashMessageSelected(MessageList::Core::MessageItemSetReferen
// And stuff them into a KMTrashMsgCommand :)
auto command = new KMTrashMsgCommand(mCurrentCollection, select, ref);
QObject::connect(command, &KMTrashMsgCommand::moveDone, this, &KMMainWidget::slotTrashMessagesCompleted);
connect(command, &KMTrashMsgCommand::moveDone, this, &KMMainWidget::slotTrashMessagesCompleted);
command->start();
switch (command->operation()) {
case KMTrashMsgCommand::MoveToTrash:
......
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