From c8af83202a44f81cd3a6554a5897bede33b51f94 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 13 Jul 2018 12:38:21 +0200 Subject: [PATCH] Qt/GraphicsWindow: Fix lazy initialisation bugs --- Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp | 1 + Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp index 9622bd4d1d..314e513213 100644 --- a/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp @@ -33,6 +33,7 @@ AdvancedWidget::AdvancedWidget(GraphicsWindow* parent) : GraphicsWidget(parent) [=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); }); OnBackendChanged(); + OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized); } void AdvancedWidget::CreateWidgets() diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index ff37193288..5ce4ea4319 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -41,6 +41,7 @@ GeneralWidget::GeneralWidget(X11Utils::XRRConfiguration* xrr_config, GraphicsWin connect(parent, &GraphicsWindow::BackendChanged, this, &GeneralWidget::OnBackendChanged); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); }); + OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized); } void GeneralWidget::CreateWidgets()