From 2cffffdcfffb79a3c0195243a96bde02f5e5e30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Thu, 18 Jan 2018 23:49:17 +0100 Subject: [PATCH] Fixed error in qubesmanager utils Fix in app.labels caused an old workaround to malfunction. fixes QubesOS/qubes-issues#3475 --- qubesmanager/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/utils.py b/qubesmanager/utils.py index f5f66d1..946cbd9 100644 --- a/qubesmanager/utils.py +++ b/qubesmanager/utils.py @@ -113,7 +113,7 @@ def prepare_label_choice(widget, holder, propname, default, *args, **kwargs): app = holder return prepare_choice(widget, holder, propname, - sorted(app.labels, key=lambda l: l.index), + sorted(app.labels.values(), key=lambda l: l.index), default, *args, icon_getter=(lambda label: QIcon.fromTheme(label.icon)), **kwargs)