diff --git a/src/plugins/coreplugin/loggingviewer.cpp b/src/plugins/coreplugin/loggingviewer.cpp index 0ee6c0b7f42..cc2b8226810 100644 --- a/src/plugins/coreplugin/loggingviewer.cpp +++ b/src/plugins/coreplugin/loggingviewer.cpp @@ -95,6 +95,12 @@ private: void onFilter(QLoggingCategory *category) { + if (QThread::currentThread() != thread()) { + QMetaObject::invokeMethod( + this, [category, this] { onFilter(category); }, Qt::QueuedConnection); + return; + } + if (!m_categories.contains(category)) { m_categories.append(category); emit newLogCategory(category);