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
c74b8510
Commit
c74b8510
authored
Aug 09, 2021
by
Laurent Montel
Browse files
Modernize code
parent
edf3694d
Pipeline
#74087
passed with stage
in 24 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/job/composenewmessagejob.cpp
View file @
c74b8510
...
...
@@ -27,7 +27,7 @@ void ComposeNewMessageJob::setCurrentCollection(const Akonadi::Collection &col)
static
void
copyAddresses
(
const
KMime
::
Headers
::
Generics
::
AddressList
*
from
,
KMime
::
Headers
::
Generics
::
AddressList
*
to
)
{
if
(
from
==
nullptr
)
{
// no such headers to copy from
if
(
!
from
)
{
// no such headers to copy from
return
;
}
...
...
src/search/checkindexingmanager.cpp
View file @
c74b8510
...
...
@@ -19,6 +19,9 @@
#include
<PimCommonAkonadi/MailUtil>
#include
<QDBusInterface>
#include
<QTimer>
#include
<chrono>
using
namespace
std
::
chrono_literals
;
CheckIndexingManager
::
CheckIndexingManager
(
Akonadi
::
Search
::
PIM
::
IndexedItems
*
indexer
,
QObject
*
parent
)
:
QObject
(
parent
)
...
...
@@ -26,7 +29,7 @@ CheckIndexingManager::CheckIndexingManager(Akonadi::Search::PIM::IndexedItems *i
,
mTimer
(
new
QTimer
(
this
))
{
mTimer
->
setSingleShot
(
true
);
mTimer
->
setInterval
(
5
*
1000
);
// 5 secondes
mTimer
->
setInterval
(
5
s
);
// 5 secondes
connect
(
mTimer
,
&
QTimer
::
timeout
,
this
,
&
CheckIndexingManager
::
checkNextCollection
);
}
...
...
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