Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #885 from asenchenko/develop_issue_884
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pascual authored Mar 20, 2019
2 parents 141a935 + 20dc71e commit 2440c73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/taurus/qt/qtgui/panel/taurusmodellist.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ def __init__(self, src=None, display=None):
if display is not None:
self.display = display

def __deepcopy__(self, memo):
cls = self.__class__
result = cls.__new__(cls)
memo[id(self)] = result
result.icon = Qt.QIcon(self.icon)
result.ok = copy.deepcopy(self.ok, memo)
result._src = copy.deepcopy(self._src, memo)
result.display = copy.deepcopy(self.display, memo)
return result

def __repr__(self):
ret = "TaurusModelItem('%s')" % (self.display)
return ret
Expand Down

0 comments on commit 2440c73

Please sign in to comment.