Fix crash when copying family objects to the clipboard
svn: r19339
This commit is contained in:
parent
e611060c23
commit
11f65c4625
@ -716,13 +716,13 @@ class ScratchFamilyLink(ScratchHandleWrapper):
|
|||||||
ICON = ICONS["family"]
|
ICON = ICONS["family"]
|
||||||
|
|
||||||
def __init__(self, dbstate, obj):
|
def __init__(self, dbstate, obj):
|
||||||
from Simple import SimpleAccess
|
|
||||||
super(ScratchFamilyLink, self).__init__(dbstate, obj)
|
super(ScratchFamilyLink, self).__init__(dbstate, obj)
|
||||||
self._type = _("Family")
|
self._type = _("Family")
|
||||||
self._objclass = 'Family'
|
self._objclass = 'Family'
|
||||||
self.refresh()
|
self.refresh()
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
|
from Simple import SimpleAccess
|
||||||
if self._handle:
|
if self._handle:
|
||||||
family = self._db.get_family_from_handle(self._handle)
|
family = self._db.get_family_from_handle(self._handle)
|
||||||
if family:
|
if family:
|
||||||
|
Loading…
Reference in New Issue
Block a user