From b04ace49017b0547b33cc073550d1069186f655c Mon Sep 17 00:00:00 2001 From: Bennik2000 Date: Mon, 11 May 2020 22:43:54 +0200 Subject: [PATCH] UI: Fix bug where stats dock steals focus of main windows --- UI/window-basic-main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 09304eb15..7f97744d4 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -1855,6 +1855,8 @@ void OBSBasic::OBSInit() OnFirstLoad(); + activateWindow(); + #ifdef __APPLE__ QMetaObject::invokeMethod(this, "DeferredSysTrayLoad", Qt::QueuedConnection, Q_ARG(int, 10)); @@ -6930,6 +6932,8 @@ void OBSBasic::on_resetUI_triggered() resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical); resizeDocks(docks, sizes, Qt::Horizontal); #endif + + activateWindow(); } void OBSBasic::on_lockUI_toggled(bool lock)