Fixed error in qubesmanager utils

Fix in app.labels caused an old workaround to malfunction.

fixes QubesOS/qubes-issues#3475
This commit is contained in:
Marta Marczykowska-Górecka 2018-01-18 23:49:17 +01:00
parent 985f8fb56d
commit 2cffffdcff
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

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