eric7/WebBrowser/Download/DownloadManager.py

branch
eric7
changeset 8856
df77fbfc150f
parent 8556
766e1566cb74
child 8881
54e42bc2437a
--- a/eric7/WebBrowser/Download/DownloadManager.py	Sun Dec 26 12:53:03 2021 +0100
+++ b/eric7/WebBrowser/Download/DownloadManager.py	Sun Dec 26 17:40:02 2021 +0100
@@ -314,7 +314,7 @@
         icon = self.style().standardIcon(QStyle.StandardPixmap.SP_FileIcon)
         itm.setIcon(icon)
         self.downloadsView.setRowHeight(
-            row, itm.sizeHint().height() * self.__rowHeightMultiplier)
+            row, int(itm.sizeHint().height() * self.__rowHeightMultiplier))
         # just in case the download finished before the constructor returned
         self.__updateRow(itm)
         self.changeOccurred()
@@ -343,7 +343,7 @@
         
         self.downloadsView.setRowHeight(
             row,
-            itm.minimumSizeHint().height() * self.__rowHeightMultiplier)
+            int(itm.minimumSizeHint().height() * self.__rowHeightMultiplier))
         
         remove = False
         

eric ide

mercurial