diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index f13015e066..7cf6c32644 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -33,6 +33,7 @@ # include # include # include +# include # include # include # include @@ -757,6 +758,12 @@ void TreeWidget::updateStatus(bool delay) { } void TreeWidget::_updateStatus(bool delay) { + // When running from a different thread Qt will raise a warning + // when trying to start the QTimer + if (Q_UNLIKELY(thread() != QThread::currentThread())) { + return; + } + if (!delay) { if (!ChangedObjects.empty() || !NewObjects.empty()) onUpdateStatus();