Recalculate geometry if data changed.

This commit is contained in:
Florian Bruhin 2014-11-15 20:07:19 +01:00
parent 40918bfc98
commit 8c5bc67dd0

View File

@ -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)