From c306ccfa3548e9fe3a3bb2bedfb90c75c655391a Mon Sep 17 00:00:00 2001 From: Wiktor Mazur Date: Mon, 16 Dec 2019 16:02:23 +0100 Subject: [PATCH] Icon sizes adjusted --- frontend/src/dmg_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/dmg_list.py b/frontend/src/dmg_list.py index bc1a358..83b285e 100644 --- a/frontend/src/dmg_list.py +++ b/frontend/src/dmg_list.py @@ -121,7 +121,7 @@ class DmgList(QListView): def __init__(self): QListView .__init__(self) - + self.setIconSize(QtCore.QSize(30, 30)) self.model = self.DmgItemModel(self) self.proxy = self.SortProxyModel() self.proxy.setSourceModel(self.model) @@ -144,7 +144,7 @@ class DmgList(QListView): visible_names.append(player.name) for i in range(self.model.rowCount()): item = self.model.item(i) - if hasattr(item.player, 'name') and item.player.name not in visible_names: + if hasattr(item, 'player') and hasattr(item.player, 'name') and item.player.name not in visible_names: self.model.removeRow(i) self.proxy.sort(0, QtCore.Qt.DescendingOrder)