mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt/Debugger: Fix crash with floating debugger windows
This commit is contained in:
@ -31,6 +31,8 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
|
||||
|
||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||
|
||||
CreateWidgets();
|
||||
|
||||
auto& settings = Settings::GetQSettings();
|
||||
|
||||
restoreGeometry(settings.value(QStringLiteral("breakpointwidget/geometry")).toByteArray());
|
||||
@ -38,8 +40,6 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
|
||||
// according to Settings
|
||||
setFloating(settings.value(QStringLiteral("breakpointwidget/floating")).toBool());
|
||||
|
||||
CreateWidgets();
|
||||
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
||||
UpdateButtonsEnabled();
|
||||
if (state == Core::State::Uninitialized)
|
||||
|
Reference in New Issue
Block a user