Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
984a053b
Commit
984a053b
authored
Jun 16, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't clear all the time :) Start job
parent
482e3e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
kmail/src/search/checkindexingmanager.cpp
kmail/src/search/checkindexingmanager.cpp
+2
-1
No files found.
kmail/src/search/checkindexingmanager.cpp
View file @
984a053b
...
...
@@ -48,6 +48,7 @@ void CheckIndexingManager::start(QAbstractItemModel *collectionModel)
{
if
(
mIsReady
)
{
mIndex
=
0
;
mListCollection
.
clear
();
if
(
collectionModel
)
{
initializeCollectionList
(
collectionModel
);
if
(
!
mListCollection
.
isEmpty
())
{
...
...
@@ -64,6 +65,7 @@ void CheckIndexingManager::createJob()
CheckIndexingJob
*
job
=
new
CheckIndexingJob
(
this
);
job
->
setCollection
(
mListCollection
.
at
(
mIndex
));
connect
(
job
,
&
CheckIndexingJob
::
finished
,
this
,
&
CheckIndexingManager
::
slotRestartTimer
);
job
->
start
();
}
void
CheckIndexingManager
::
checkNextCollection
()
...
...
@@ -92,7 +94,6 @@ bool CheckIndexingManager::isReady() const
void
CheckIndexingManager
::
initializeCollectionList
(
QAbstractItemModel
*
model
,
const
QModelIndex
&
parentIndex
)
{
mListCollection
.
clear
();
const
int
rowCount
=
model
->
rowCount
(
parentIndex
);
for
(
int
row
=
0
;
row
<
rowCount
;
++
row
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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