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); }