mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-19 10:55:14 +00:00
PICARD-2017: Fix crash when removing NATs
When the non-album track "album" entry got removed just before a non-album track was also removed Picard would crash.
This commit is contained in:
@@ -718,6 +718,8 @@ class Tagger(QtWidgets.QApplication):
|
||||
"""Remove the specified non-album track."""
|
||||
log.debug("Removing %r", track)
|
||||
self.remove_files(self.get_files_from_objects([track]))
|
||||
if not self.nats:
|
||||
return
|
||||
self.nats.tracks.remove(track)
|
||||
if not self.nats.tracks:
|
||||
self.remove_album(self.nats)
|
||||
|
||||
Reference in New Issue
Block a user