summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/coreplugin/documentmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/documentmanager.cpp b/src/plugins/coreplugin/documentmanager.cpp
index b054b7ccd1..ad1cb3f638 100644
--- a/src/plugins/coreplugin/documentmanager.cpp
+++ b/src/plugins/coreplugin/documentmanager.cpp
@@ -215,7 +215,12 @@ void DocumentManagerPrivate::onApplicationFocusChange()
DocumentManagerPrivate::DocumentManagerPrivate()
{
- connect(qApp, &QApplication::focusChanged, this, &DocumentManagerPrivate::onApplicationFocusChange);
+ // we do not want to do too much directly in the focus change event, so queue the connection
+ connect(qApp,
+ &QApplication::focusChanged,
+ this,
+ &DocumentManagerPrivate::onApplicationFocusChange,
+ Qt::QueuedConnection);
}
} // namespace Internal