Skip to content

Commit

Permalink
properties: correctly return result in ObservableDict.setdefault
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Dec 7, 2013
1 parent a06a071 commit c641370
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kivy/properties.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,9 @@ class ObservableDict(dict):
return result

def setdefault(self, *largs):
dict.setdefault(self, *largs)
cdef object result = dict.setdefault(self, *largs)
observable_dict_dispatch(self)
return result

def update(self, *largs):
dict.update(self, *largs)
Expand Down

0 comments on commit c641370

Please sign in to comment.