mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
Edit Book: Fix regression that causes spurious error while saving
This commit is contained in:
parent
d62fb3334b
commit
3b18cb29d7
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ def sizeHint(self):
|
|||
return self._size_hint
|
||||
|
||||
def setSizeHint(self, val):
|
||||
if isinstance(val, int):
|
||||
val = QSize(val, val)
|
||||
self._size_hint = val
|
||||
self.update()
|
||||
setDisplaySize = setSizeHint
|
||||
|
|
|
|||
Loading…
Reference in a new issue