mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:59:00 +08:00
Check for None before updating model
CURA-5670
This commit is contained in:
parent
f18d9fed97
commit
b21200c6a8
@ -33,6 +33,9 @@ class AuthorsModel(ListModel):
|
||||
|
||||
def _update(self):
|
||||
items = []
|
||||
if not self._metadata:
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
for author in self._metadata:
|
||||
items.append({
|
||||
|
Loading…
x
Reference in New Issue
Block a user