Diffusion Baloo 429c25772e4f

[FileIndexScheduler] Avoid emitting state changes multiple times

Authored by bruns on Jun 2 2019, 1:33 AM.

Description

[FileIndexScheduler] Avoid emitting state changes multiple times

Summary:
FileContentIndexer::quit() will cause emission of the done() signal,
triggering scheduleIndexing() later. scheduleIndexing() sets the
current indexer state on its own and also emits the stateChanged signal,
there is no need to do it from the various slots.

Test Plan: unplug AC, state change signal is still emitted

Reviewers: Baloo, ngraham, astippich

Reviewed By: Baloo, ngraham

Subscribers: kde-frameworks-devel, Baloo

Tags: Frameworks, Baloo

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

Details

Committed
brunsJun 3 2019, 12:22 AM
Reviewer
Baloo
Differential Revision
D21539: [FileIndexScheduler] Avoid emitting state changes multiple times
Parents
R293:54ee1b062c34: [balooctl] Clarify and extend status output
Branches
Unknown
Tags
Unknown