diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 4e3dd581a..305237ac3 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -83,7 +83,7 @@ class ZoomIconView(QtWidgets.QListView): w = self.iconSize().width()*self.zoom_step**( ev.angleDelta().y()/120.) if a <= w <= b: - self.setIconSize(QtCore.QSize(w, w*self.aspect)) + self.setIconSize(QtCore.QSize(int(w), int(w*self.aspect))) else: QtWidgets.QListView.wheelEvent(self, ev)