Commit 00edc3fe authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[orangecontrib][transformation] Remove widget when updating dataset

parent 22b66c8a
Pipeline #48531 passed with stage
in 3 minutes and 18 seconds
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "04/06/2021"
__date__ = "14/06/2021"
from silx.gui import qt
......@@ -54,9 +54,13 @@ class TransformationWidgetOW(OWWidget):
def __init__(self):
super().__init__()
self._widget = None
@Inputs.dataset
def setDataset(self, dataset):
if self._widget:
self.controlArea.layout().removeWidget(self._widget)
self._widget.hide()
if dataset:
if not dataset[0].dims.ndim:
msg = qt.QMessageBox()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment