Skip to content

Commit 0a07da0

Browse files
committed
owimageviewer: Reorder the variables in the GUI
Display class and meta vars before the regulat attributes
1 parent 3edd300 commit 0a07da0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Orange/widgets/data/owimageviewer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,9 @@ def setData(self, data):
905905

906906
if data is not None:
907907
domain = data.domain
908-
self.allAttrs = domain.variables + domain.metas
909-
self.stringAttrs = [a for a in self.allAttrs if a.is_string]
908+
self.allAttrs = (domain.class_vars + domain.metas +
909+
domain.attributes)
910+
self.stringAttrs = [a for a in domain.metas if a.is_string]
910911

911912
self.stringAttrs = sorted(
912913
self.stringAttrs,

0 commit comments

Comments
 (0)