Recalculate geometry if data changed.
This commit is contained in:
parent
40918bfc98
commit
8c5bc67dd0
@ -88,6 +88,7 @@ class DownloadView(QListView):
|
||||
model = objreg.get('download-manager', scope='window', window=win_id)
|
||||
model.rowsInserted.connect(functools.partial(update_geometry, self))
|
||||
model.rowsRemoved.connect(functools.partial(update_geometry, self))
|
||||
model.dataChanged.connect(functools.partial(update_geometry, self))
|
||||
self.setModel(model)
|
||||
self.setWrapping(True)
|
||||
self.setContextMenuPolicy(Qt.CustomContextMenu)
|
||||
|
Loading…
Reference in New Issue
Block a user