Skip to content

Commit

Permalink
owimageviewer: Reorder the variables in the GUI
Browse files Browse the repository at this point in the history
Display class and meta vars before the regulat attributes
  • Loading branch information
ales-erjavec committed Jul 4, 2016
1 parent 3edd300 commit 0a07da0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/widgets/data/owimageviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,9 @@ def setData(self, data):

if data is not None:
domain = data.domain
self.allAttrs = domain.variables + domain.metas
self.stringAttrs = [a for a in self.allAttrs if a.is_string]
self.allAttrs = (domain.class_vars + domain.metas +
domain.attributes)
self.stringAttrs = [a for a in domain.metas if a.is_string]

self.stringAttrs = sorted(
self.stringAttrs,
Expand Down

0 comments on commit 0a07da0

Please sign in to comment.