mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3103 (Error dialogue errors out if invalid file for cover is specified)
This commit is contained in:
parent
7182f6d409
commit
91b53e3d0c
@ -115,7 +115,9 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
||||
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…
x
Reference in New Issue
Block a user