Skip to content

Commit

Permalink
ReportItem: Add __getnewargs__
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Sep 13, 2017
1 parent dfa61e1 commit e3048d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Orange/canvas/report/owreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def __init__(self, name, html, scheme, module, icon_name, comment=""):
self.id = id(icon)
super().__init__(icon, name)

def __getnewargs__(self):
return (self.name, self.html, self.scheme, self.module, self.icon_name,
self.comment)


class ReportItemModel(QStandardItemModel):
def __init__(self, rows, columns, parent=None):
Expand Down

0 comments on commit e3048d2

Please sign in to comment.