mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:33:30 +02:00
Fix #6300 (TypeError: an integer is required)
This commit is contained in:
parent
24342c9099
commit
dce70ef463
1 changed files with 4 additions and 1 deletions
|
|
@ -26,7 +26,10 @@ def __init__(self, *args):
|
|||
def set_normal_icon_size(self, w, h):
|
||||
self.normal_icon_size = QSize(w, h)
|
||||
self.setIconSize(self.normal_icon_size)
|
||||
self.setMinimumSize(self.sizeHint())
|
||||
try:
|
||||
self.setMinimumSize(self.sizeHint())
|
||||
except:
|
||||
self.setMinimumSize(QSize(w+5, h+5))
|
||||
|
||||
def animation_finished(self):
|
||||
self.setIconSize(self.normal_icon_size)
|
||||
|
|
|
|||
Loading…
Reference in a new issue