From 049e32eb4034c6d05eefb71d6a3d6a3f8896ad5f Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 5 May 2021 19:08:04 +1000 Subject: [PATCH] core: queue project panel focus so it doesn't happen too early Fixes #1608 --- app/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core.cpp b/app/core.cpp index ad864b41f..a42d98f91 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -694,7 +694,7 @@ void Core::StartGUI(bool full_screen) #endif // When a new project is opened, update the mainwindow - connect(this, &Core::ProjectOpened, main_window_, &MainWindow::ProjectOpen); + connect(this, &Core::ProjectOpened, main_window_, &MainWindow::ProjectOpen, Qt::QueuedConnection); connect(this, &Core::ProjectClosed, main_window_, &MainWindow::ProjectClose); // Start autorecovery timer using the config value as its interval