[tagsaction] Don't crash on multiple files

Authored by nicolasfella on Apr 7 2019, 5:08 PM.

Description

[tagsaction] Don't crash on multiple files

Summary:
Tagging multiple files is not supported and thus we never create m_metadata for it. However, we start the tags listing and as soon as tags are found m_metadata is accesses which results in a crash.

This patch delays the tags listing until m_metadata has been initialized

BUG: 401733

Test Plan: Select multiple files in Dolphin, right click -> no crash

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: Baloo

Tags: Baloo

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

Details

Committed
nicolasfellaApr 7 2019, 5:10 PM
Reviewer
elvisangelaccio
Differential Revision
D20361: [tagsaction] Don't crash on multiple files
Parents
R824:617fe3fc3fbc: GIT_SILENT Upgrade KDE Applications version to 19.03.90.
Branches
Unknown
Tags
Unknown