Fix: Globals Widget Edit and Delete Actions (#3341)

closes #3340
This commit is contained in:
Zack08110 2024-05-17 14:30:58 +05:30 committed by GitHub
parent 76643671fd
commit 3e50e5f2ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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