Revert "Check if on main thread for call_on_qt_thread"

This reverts commit 21099e30cb.
It was causing a segfault when saving UFP files.
This commit is contained in:
Ghostkeeper 2019-02-15 13:44:06 +01:00
parent 21bc8d7990
commit f3cab17e20
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -31,10 +31,4 @@ def call_on_qt_thread(func):
CuraApplication.getInstance().callLater(_handle_call, *new_args, **kwargs)
inter_call_object.finish_event.wait()
return inter_call_object.result
# If the current thread is the main thread, which is the Qt thread, directly return the function.
current_thread = threading.current_thread()
if isinstance(current_thread, threading._MainThread):
return func
return _call_on_qt_thread_wrapper