From e46656323c7ba1adef5161b86f582d51437c53bf Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sun, 22 Sep 2024 16:24:28 -0700 Subject: [PATCH] Fix clearing invalid tags --- comictaggerlib/taggerwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index 8aa8f37..6a2d3c2 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -220,11 +220,11 @@ class TaggerWindow(QtWidgets.QMainWindow): if config[0].Runtime_Options__tags_read: config[0].internal__read_tags = config[0].Runtime_Options__tags_read - for tag_id in config[0].internal__write_tags: + for tag_id in config[0].internal__write_tags.copy(): if tag_id not in tags: config[0].internal__write_tags.remove(tag_id) - for tag_id in config[0].internal__read_tags: + for tag_id in config[0].internal__read_tags.copy(): if tag_id not in tags: config[0].internal__read_tags.remove(tag_id)