Permalink
Browse files

Merge pull request #7260 from spycrab/qt_fix_lazy

Qt/GraphicsWindow: Fix lazy initialisation bugs
  • Loading branch information...
spycrab committed Jul 13, 2018
2 parents cc6526f + c8af832 commit 4826acd931144fe8ef532cf38e16c9dee034da99
@@ -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()
@@ -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()

0 comments on commit 4826acd

Please sign in to comment.