mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 08:47:50 -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):
|
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…
Add table
Add a link
Reference in a new issue