From 5eccdad7ace57438d6986f0b2a1bfd21ec87259d Mon Sep 17 00:00:00 2001 From: Philipp Wolfer <ph.wolfer@gmail.com> Date: Mon, 2 Oct 2023 13:09:38 +0200 Subject: [PATCH] PICARD-2769: Show a file's original metadata in the panes for unset tags In case a tag has been unset and "clear existing tags" is not enabled display a file's original value in the pane columns. --- picard/file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/picard/file.py b/picard/file.py index 9c4078dc1e..b62e1aceb0 100644 --- a/picard/file.py +++ b/picard/file.py @@ -816,7 +816,10 @@ def column(self, column): return self.base_filename elif column == 'covercount': return self.cover_art_description() - return m[column] + value = m[column] + if not value and not get_config().setting['clear_existing_tags']: + value = self.orig_metadata[column] + return value def _lookup_finished(self, lookuptype, document, http, error): self.lookup_task = None