From c24fa93965a68b8adf5d0df9005212792d029146 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:43:12 -0700 Subject: PPCSymbolDB: Move instance to PowerPCManager --- Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp') diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index 39d755efc9..d9ff18db03 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -194,25 +194,26 @@ void BranchWatchProxyModel::SetInspected(const QModelIndex& index) } BranchWatchDialog::BranchWatchDialog(Core::System& system, Core::BranchWatch& branch_watch, - CodeWidget* code_widget, QWidget* parent) + PPCSymbolDB& ppc_symbol_db, CodeWidget* code_widget, + QWidget* parent) : QDialog(parent), m_system(system), m_branch_watch(branch_watch), m_code_widget(code_widget) { setWindowTitle(tr("Branch Watch Tool")); setWindowFlags((windowFlags() | Qt::WindowMinMaxButtonsHint) & ~Qt::WindowContextHelpButtonHint); SetQWidgetWindowDecorations(this); - setLayout([this]() { + setLayout([this, &ppc_symbol_db]() { auto* main_layout = new QVBoxLayout; // Controls Toolbar (widgets are added later) main_layout->addWidget(m_control_toolbar = new QToolBar); // Branch Watch Table - main_layout->addWidget(m_table_view = [this]() { + main_layout->addWidget(m_table_view = [this, &ppc_symbol_db]() { const auto& ui_settings = Settings::Instance(); m_table_proxy = new BranchWatchProxyModel(m_branch_watch); - m_table_proxy->setSourceModel(m_table_model = - new BranchWatchTableModel(m_system, m_branch_watch)); + m_table_proxy->setSourceModel( + m_table_model = new BranchWatchTableModel(m_system, m_branch_watch, ppc_symbol_db)); m_table_proxy->setSortRole(UserRole::SortRole); m_table_model->setFont(ui_settings.GetDebugFont()); -- cgit v1.2.3