Commit 9b88e894 authored by Henri Payno's avatar Henri Payno
Browse files

[orangecontrib] preventive "fix", use the duplicated xasObject instead of the one received

parent 7245aba5
......@@ -237,8 +237,9 @@ class FTOW(_ProcessForOrangeMixIn, OWWidget):
# update the processing thread
thread = self.getProcessingThread()
thread.init(process_obj=process_obj, xas_obj=xas_obj)
self._callback_finish = functools.partial(self._endProcess, xas_obj)
thread.init(process_obj=process_obj, xas_obj=self._latest_xas_obj)
self._callback_finish = functools.partial(self._endProcess,
self._latest_xas_obj)
thread.finished.connect(self._callback_finish)
# start processing
......
......@@ -127,8 +127,9 @@ class KWeightOW(_ProcessForOrangeMixIn, OWWidget):
# update the processing thread
thread = self.getProcessingThread()
thread.init(process_obj=process_obj, xas_obj=xas_obj)
self._callback_finish = functools.partial(self._endProcess, xas_obj)
thread.init(process_obj=process_obj, xas_obj=self._latest_xas_obj)
self._callback_finish = functools.partial(self._endProcess,
self._latest_xas_obj)
thread.finished.connect(self._callback_finish)
# start processing
thread.start(priority=qt.QThread.LowPriority)
......
......@@ -170,8 +170,9 @@ class NormalizationOW(_ProcessForOrangeMixIn, OWWidget):
# update the processing thread
thread = self.getProcessingThread()
thread.init(process_obj=process_obj, xas_obj=xas_obj)
self._callback_finish = functools.partial(self._endProcess, xas_obj)
thread.init(process_obj=process_obj, xas_obj=self._latest_xas_obj)
self._callback_finish = functools.partial(self._endProcess,
self._latest_xas_obj)
thread.finished.connect(self._callback_finish)
# start processing
thread.start(priority=qt.QThread.LowPriority)
......
Supports Markdown
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