Skip to content

Commit 69cfedd

Browse files
committed
OWCorrelations: Disable button when no data on input
1 parent 63986ae commit 69cfedd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Orange/widgets/data/owcorrelations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def __init__(self):
191191
self.vizrank, _ = CorrelationRank.add_vizrank(
192192
None, self, None, self._vizrank_selection_changed)
193193
self.vizrank.progressBar = self.progressBar
194+
self.vizrank.button.setEnabled(False)
194195

195196
gui.separator(box)
196197
box.layout().addWidget(self.vizrank.filter)
@@ -242,6 +243,7 @@ def set_data(self, data):
242243
self.apply()
243244
self.openContext(self.data)
244245
self._vizrank_select()
246+
self.vizrank.button.setEnabled(self.data is not None)
245247

246248
def apply(self):
247249
self.vizrank.initialize()

0 commit comments

Comments
 (0)