Skip to content

Commit

Permalink
Fixed Track.tagger not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed May 3, 2024
1 parent 6b0933f commit 1b9ae4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions picard/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class Track(DataObject, FileListItem):
def __init__(self, track_id, album=None):
DataObject.__init__(self, track_id)
FileListItem.__init__(self)
self.tagger = QtCore.QCoreApplication.instance()
self.metadata = Metadata()
self.orig_metadata = Metadata()
self.album = album
Expand Down Expand Up @@ -374,8 +375,8 @@ def _convert_folksonomy_tags_to_genre(self):
class NonAlbumTrack(Track):

def __init__(self, nat_id):
self.tagger = QtCore.QCoreApplication.instance()
super().__init__(nat_id, self.tagger.nats)
tagger = QtCore.QCoreApplication.instance()
super().__init__(nat_id, tagger.nats)
self.callback = None
self.loaded = False
self.status = None
Expand Down

0 comments on commit 1b9ae4a

Please sign in to comment.