mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Check for None before updating model
CURA-5670
This commit is contained in:
parent
f18d9fed97
commit
b21200c6a8
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue