From 87e40449a673ed330fc45fb7d16d8a459f5ec8ff Mon Sep 17 00:00:00 2001 From: Michael Wiencek Date: Tue, 26 Jul 2011 00:37:30 -0500 Subject: [PATCH] Make sure removed albums return if they happen to reach _release_request_finished --- picard/album.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/picard/album.py b/picard/album.py index a4dc797d6..c6d7d689b 100644 --- a/picard/album.py +++ b/picard/album.py @@ -143,6 +143,8 @@ class Album(DataObject, Item): return True def _release_request_finished(self, document, http, error): + if self.load_task is None: + return self.load_task = None parsed = False try: @@ -297,6 +299,7 @@ class Album(DataObject, Item): def stop_loading(self): if self.load_task: self.tagger.xmlws.remove_task(self.load_task) + self.load_task = None def update(self, update_tracks=True): self.tagger.emit(QtCore.SIGNAL("album_updated"), self, update_tracks)