mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #4731 ("Reset cover to default" does not work properly)
This commit is contained in:
parent
6af7b6a43e
commit
2c6c222adf
@ -51,6 +51,9 @@
|
|||||||
- title: "Fix error while sending book with non-ascii character in title/author to device on linux"
|
- title: "Fix error while sending book with non-ascii character in title/author to device on linux"
|
||||||
tickets: [4690]
|
tickets: [4690]
|
||||||
|
|
||||||
|
- title: "Fix reset cover in edit meta information dialog does not actually remove cover"
|
||||||
|
tickets: [4731]
|
||||||
|
|
||||||
new recipes:
|
new recipes:
|
||||||
- title: Kamera Bild
|
- title: Kamera Bild
|
||||||
author: Darko Miletic
|
author: Darko Miletic
|
||||||
|
@ -653,8 +653,11 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
d = d + self.local_timezone_offset
|
d = d + self.local_timezone_offset
|
||||||
self.db.set_timestamp(self.id, d)
|
self.db.set_timestamp(self.id, d)
|
||||||
|
|
||||||
if self.cover_changed and self.cover_data is not None:
|
if self.cover_changed:
|
||||||
self.db.set_cover(self.id, self.cover_data)
|
if self.cover_data is not None:
|
||||||
|
self.db.set_cover(self.id, self.cover_data)
|
||||||
|
else:
|
||||||
|
self.db.remove_cover(self.id)
|
||||||
except IOError, err:
|
except IOError, err:
|
||||||
if err.errno == 13: # Permission denied
|
if err.errno == 13: # Permission denied
|
||||||
fname = err.filename if err.filename else 'file'
|
fname = err.filename if err.filename else 'file'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user