Diffusion Baloo 273b7a1d7a63

[Extractor] Fix progress reporting

Authored by bruns on Apr 18 2020, 4:09 PM.

Description

[Extractor] Fix progress reporting

Summary:
Commit 125b4db3230b ("Port endl to \n or std::cout/cerr as in qt5.15 endl
is Qt:: namespaced") removed the implicit "endl" flush. As a result,
the startedIndexing and finishedIndexing signals would be issued at the
same time.

This is especially bad when indexing large files, as both the KInfoCenter
qml component and balooctl monitor would report the previous file (or
no file at all, if only a single file is changed).

Test Plan:
start kinfocenter / balooctl monitor
touch some huge PDF files

Reviewers: Baloo, ngraham, mlaurent, apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D28953

Details

Committed
brunsApr 19 2020, 5:44 PM
Reviewer
apol
Differential Revision
D28953: [Extractor] Fix progress reporting
Parents
R293:680b75a9a61a: [Coding] Avoid recurrent detach and size checks
Branches
Unknown
Tags
Unknown