BasioMeusPuga / Lector

Qt based ebook reader
GNU General Public License v3.0
1.52k stars 209 forks source link

Bug fixed when self.adjisted_size is float #151

Closed J053Fabi0 closed 2 years ago

J053Fabi0 commented 2 years ago

Bug fixed when self.adjisted_size is float and QSize expects an integer.

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/lector/toolbars.py", line 514, in sizeHint
    return QtCore.QSize(self.adjusted_size, 22)
TypeError: arguments did not match any overloaded call:
  QSize(): too many arguments
  QSize(int, int): argument 1 has unexpected type 'float'
  QSize(QSize): argument 1 has unexpected type 'float'
fish: Job 1, 'lector' terminated by signal SIGABRT (Abort)
BasioMeusPuga commented 2 years ago

Thanks!