mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #8618 from encounter/debugger-floating-fix
DolphinQt/Debugger: Fix crash with floating debugger windows
This commit is contained in:
commit
aa21fe17b8
@ -31,6 +31,8 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
|
|
||||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||||
|
|
||||||
|
CreateWidgets();
|
||||||
|
|
||||||
auto& settings = Settings::GetQSettings();
|
auto& settings = Settings::GetQSettings();
|
||||||
|
|
||||||
restoreGeometry(settings.value(QStringLiteral("breakpointwidget/geometry")).toByteArray());
|
restoreGeometry(settings.value(QStringLiteral("breakpointwidget/geometry")).toByteArray());
|
||||||
@ -38,8 +40,6 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
// according to Settings
|
// according to Settings
|
||||||
setFloating(settings.value(QStringLiteral("breakpointwidget/floating")).toBool());
|
setFloating(settings.value(QStringLiteral("breakpointwidget/floating")).toBool());
|
||||||
|
|
||||||
CreateWidgets();
|
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
||||||
UpdateButtonsEnabled();
|
UpdateButtonsEnabled();
|
||||||
if (state == Core::State::Uninitialized)
|
if (state == Core::State::Uninitialized)
|
||||||
|
@ -34,6 +34,8 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
|
|
||||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||||
|
|
||||||
|
CreateWidgets();
|
||||||
|
|
||||||
auto& settings = Settings::GetQSettings();
|
auto& settings = Settings::GetQSettings();
|
||||||
|
|
||||||
restoreGeometry(settings.value(QStringLiteral("codewidget/geometry")).toByteArray());
|
restoreGeometry(settings.value(QStringLiteral("codewidget/geometry")).toByteArray());
|
||||||
@ -57,7 +59,6 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &CodeWidget::Update);
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &CodeWidget::Update);
|
||||||
|
|
||||||
CreateWidgets();
|
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
|
||||||
m_code_splitter->restoreState(
|
m_code_splitter->restoreState(
|
||||||
|
@ -27,6 +27,8 @@ RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
|
|
||||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||||
|
|
||||||
|
CreateWidgets();
|
||||||
|
|
||||||
auto& settings = Settings::GetQSettings();
|
auto& settings = Settings::GetQSettings();
|
||||||
|
|
||||||
restoreGeometry(settings.value(QStringLiteral("registerwidget/geometry")).toByteArray());
|
restoreGeometry(settings.value(QStringLiteral("registerwidget/geometry")).toByteArray());
|
||||||
@ -34,7 +36,6 @@ RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
// according to Settings
|
// according to Settings
|
||||||
setFloating(settings.value(QStringLiteral("registerwidget/floating")).toBool());
|
setFloating(settings.value(QStringLiteral("registerwidget/floating")).toBool());
|
||||||
|
|
||||||
CreateWidgets();
|
|
||||||
PopulateTable();
|
PopulateTable();
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
|
||||||
|
@ -32,6 +32,8 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
|
|
||||||
setAllowedAreas(Qt::AllDockWidgetAreas);
|
setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||||
|
|
||||||
|
CreateWidgets();
|
||||||
|
|
||||||
auto& settings = Settings::GetQSettings();
|
auto& settings = Settings::GetQSettings();
|
||||||
|
|
||||||
restoreGeometry(settings.value(QStringLiteral("watchwidget/geometry")).toByteArray());
|
restoreGeometry(settings.value(QStringLiteral("watchwidget/geometry")).toByteArray());
|
||||||
@ -39,7 +41,6 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent)
|
|||||||
// according to Settings
|
// according to Settings
|
||||||
setFloating(settings.value(QStringLiteral("watchwidget/floating")).toBool());
|
setFloating(settings.value(QStringLiteral("watchwidget/floating")).toBool());
|
||||||
|
|
||||||
CreateWidgets();
|
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user