diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 7cf6c32644..a23741fdb5 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -3002,6 +3002,12 @@ void TreeWidget::onSelectTimer() { void TreeWidget::onSelectionChanged(const SelectionChanges& msg) { + // When running from a different thread Qt will raise a warning + // when trying to start the QTimer + if (Q_UNLIKELY(thread() != QThread::currentThread())) { + return; + } + switch (msg.Type) { case SelectionChanges::AddSelection: