Fixed a exception when selecting a non-existent issue from a volume

git-svn-id: http://comictagger.googlecode.com/svn/trunk@187 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-11-30 17:55:28 +00:00
parent d300f51c7f
commit 121889ed1b

View File

@ -791,11 +791,14 @@ class TaggerWindow( QtGui.QMainWindow):
QtGui.QApplication.restoreOverrideCursor()
QtGui.QMessageBox.critical(self, self.tr("Network Issue"), self.tr("Could not connect to ComicVine to get issue details!"))
else:
self.metadata.overlay( new_metadata )
# Now push the new combined data into the edit controls
self.metadataToForm()
finally:
QtGui.QApplication.restoreOverrideCursor()
if new_metadata is not None:
self.metadata.overlay( new_metadata )
# Now push the new combined data into the edit controls
self.metadataToForm()
else:
QtGui.QMessageBox.critical(self, self.tr("Search"), self.tr("Could not find an issue {0} for that series".format(selector.issue_number)))
def commitMetadata(self):