mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 15:05:55 +01:00
Fix #3103 (Error dialogue errors out if invalid file for cover is specified)
This commit is contained in:
parent
7182f6d409
commit
91b53e3d0c
1 changed files with 3 additions and 1 deletions
|
|
@ -115,7 +115,9 @@ def select_cover(self, checked):
|
|||
pix = QPixmap()
|
||||
pix.loadFromData(cover)
|
||||
if pix.isNull():
|
||||
d = error_dialog(self.window, _file + " is not a valid picture")
|
||||
d = error_dialog(self.window,
|
||||
_("Not a valid picture"),
|
||||
_file + _(" is not a valid picture"))
|
||||
d.exec_()
|
||||
else:
|
||||
self.cover_path.setText(_file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue