Fix #7220 (Dismiss "Fetch Metadata" box when fetch fails)

This commit is contained in:
Kovid Goyal 2010-10-18 13:40:15 -06:00
parent 15b4bf7f8b
commit f9006854a0

View File

@ -190,7 +190,8 @@ class FetchMetadata(QDialog, Ui_FetchMetadata):
if self.model.rowCount() < 1:
info_dialog(self, _('No metadata found'),
_('No metadata found, try adjusting the title and author '
'or the ISBN key.')).exec_()
'and/or removing the ISBN.')).exec_()
self.reject()
return
self.matches.setModel(self.model)