Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
23aa9f14
Commit
23aa9f14
authored
Aug 04, 2022
by
Laurent Montel
Browse files
Use directly connect
parent
385b4157
Pipeline
#212676
passed with stage
in 4 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
23aa9f14
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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