summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
diff options
context:
space:
mode:
authorLuke Street <luke.street@encounterpc.com>2020-02-09 02:32:04 -0500
committerLuke Street <luke.street@encounterpc.com>2020-02-09 02:32:04 -0500
commit3e94366fe029299a4384ca0a15c779986727d3ad (patch)
tree955b6ca11fe8a77628444f0e4edccda4cd2fc917 /Source/Core/DolphinQt/Debugger/WatchWidget.cpp
parent3cec5443cdaac2d889007c683a0cccaaef582397 (diff)
DolphinQt/Debugger: Fix crash with floating debugger windows
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/WatchWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
index a53f7b7ecc..e8bc2b8610 100644
--- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp
@@ -32,6 +32,8 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
setAllowedAreas(Qt::AllDockWidgetAreas);
+ CreateWidgets();
+
auto& settings = Settings::GetQSettings();
restoreGeometry(settings.value(QStringLiteral("watchwidget/geometry")).toByteArray());
@@ -39,7 +41,6 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
// according to Settings
setFloating(settings.value(QStringLiteral("watchwidget/floating")).toBool());
- CreateWidgets();
ConnectWidgets();
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {