Show only tags which are actually present on disk in the file info view

The file info view is supposed to represent the state of the file as it is
currently on disk and should not show any tags which have been added as
part of the automatic tag management.
This commit is contained in:
Martchus 2021-08-08 00:07:02 +02:00
parent 084bfea1fe
commit ea6e670600
3 changed files with 4 additions and 4 deletions

View File

@ -199,7 +199,7 @@ if (WIDGETS_GUI OR QUICK_GUI)
endif ()
# find tagparser
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 10.0.0 REQUIRED)
find_package(tagparser${CONFIGURATION_PACKAGE_SUFFIX} 10.1.0 REQUIRED)
use_tag_parser()
# enable experimental JSON export

View File

@ -342,7 +342,7 @@ void FileInfoModel::updateCache()
// tags
{
const auto tags = m_file->tags();
const auto tags = m_file->parsedTags();
if (!tags.empty()) {
auto *tagsItem = defaultItem(tr("Tags"));
setItem(++currentRow, tagsItem);

View File

@ -970,7 +970,7 @@ public:
}
// tags
auto tags = m_file.tags();
const auto tags = m_file.parsedTags();
if (!tags.empty()) {
startTableSection();
const QString moreId(QStringLiteral("tagsMore"));
@ -983,7 +983,7 @@ public:
m_writer.writeEndElement();
startExtendedTableSection(moreId);
for (const Tag *tag : tags) {
for (const Tag *const tag : tags) {
RowMaker rowMaker(m_writer);
rowMaker.startSubTab(qstr(tag->typeName()));
if (!tag->version().empty()) {