From 3e50e5f2ad28d9799afb7a9858af642cb4aac3b6 Mon Sep 17 00:00:00 2001 From: Zack08110 <54111579+Zack08110@users.noreply.github.com> Date: Fri, 17 May 2024 14:30:58 +0530 Subject: [PATCH] Fix: Globals Widget Edit and Delete Actions (#3341) closes #3340 --- src/widgets/GlobalsWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/GlobalsWidget.cpp b/src/widgets/GlobalsWidget.cpp index f0d9bfc8..a6a26e23 100644 --- a/src/widgets/GlobalsWidget.cpp +++ b/src/widgets/GlobalsWidget.cpp @@ -128,7 +128,7 @@ void GlobalsWidget::editGlobal() return; } - RVA globalVariableAddress = globalsModel->address(index); + RVA globalVariableAddress = globalsProxyModel->address(index); GlobalVariableDialog dialog(globalVariableAddress, parentWidget()); dialog.exec(); @@ -142,7 +142,7 @@ void GlobalsWidget::deleteGlobal() return; } - RVA globalVariableAddress = globalsModel->address(index); + RVA globalVariableAddress = globalsProxyModel->address(index); Core()->delGlobalVariable(globalVariableAddress); }