mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29: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):
|
def _update(self):
|
||||||
items = []
|
items = []
|
||||||
|
if not self._metadata:
|
||||||
|
self.setItems([])
|
||||||
|
return
|
||||||
|
|
||||||
for author in self._metadata:
|
for author in self._metadata:
|
||||||
items.append({
|
items.append({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user