Display metadata information in case only basic indexing is enabled
ClosedPublic

Authored by astippich on Apr 9 2019, 4:23 PM.

Details

Summary

Metadata was only extracted manually when the indexing was disabled
completely. In case of basic indexing, also no metadata is available,
hence also extract it then.

Test Plan

Enable basic file indexing only (and make sure to delete old database)
Metadata for files is shown in Information Panel/Tooltips

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich created this revision.Apr 9 2019, 4:23 PM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 9 2019, 4:23 PM
Restricted Application added a subscriber: Baloo. · View Herald Transcript
astippich requested review of this revision.Apr 9 2019, 4:23 PM
ngraham accepted this revision.Apr 9 2019, 5:17 PM

Ah, very nice catch.

This revision is now accepted and ready to land.Apr 9 2019, 5:17 PM
bruns requested changes to this revision.Apr 9 2019, 5:23 PM

I wonder if it wouldn't be better to check if baloo returned any data - it may have started indexing, but is still working on it.

src/filemetadataprovider.cpp
318

you can remove the m_config.fileIndexingEnable() &&, as it evaluates to true here always - if it is false, the first checks is true.

This revision now requires changes to proceed.Apr 9 2019, 5:23 PM
astippich updated this revision to Diff 55847.Apr 9 2019, 5:59 PM
  • remove superfluous check
astippich marked an inline comment as done.Apr 9 2019, 5:59 PM
astippich added inline comments.
src/filemetadataprovider.cpp
318

true :)

bruns accepted this revision.Apr 9 2019, 7:30 PM
This revision is now accepted and ready to land.Apr 9 2019, 7:30 PM
This revision was automatically updated to reflect the committed changes.
astippich marked an inline comment as done.