Skip to content

Commit 90bb98f

Browse files
committed
owimageviewer: Reorder the variables in the GUI
Display class and meta vars before the regular attributes
1 parent 6bd6582 commit 90bb98f

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
@@ -951,8 +951,9 @@ def setData(self, data):
951951

952952
if data is not None:
953953
domain = data.domain
954-
self.allAttrs = domain.variables + domain.metas
955-
self.stringAttrs = [a for a in self.allAttrs if a.is_string]
954+
self.allAttrs = (domain.class_vars + domain.metas +
955+
domain.attributes)
956+
self.stringAttrs = [a for a in domain.metas if a.is_string]
956957

957958
self.stringAttrs = sorted(
958959
self.stringAttrs,

0 commit comments

Comments
 (0)