Gui: issue #8939: timers are moved between non-QThreads

This commit is contained in:
wmayer
2023-03-22 10:22:21 +01:00
committed by wwmayer
parent cbd0f792bb
commit 66047f7daa

View File

@@ -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: