mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Fix changing Variable Name in EditVariablesDialog
This commit is contained in:
parent
96f6e062fc
commit
dd934443a7
@ -37,9 +37,9 @@ void EditVariablesDialog::applyFields()
|
||||
|
||||
Core()->cmdRaw(QString("afvt %1 %2").arg(desc.name).arg(ui->typeComboBox->currentText()));
|
||||
|
||||
QString newName = ui->dropdownLocalVars->currentText().replace(" ", "_");
|
||||
QString newName = ui->nameEdit->text().replace(" ", "_");
|
||||
if (newName != desc.name) {
|
||||
Core()->cmdRaw(QString("afvn %1 %2").arg(desc.name).arg(newName));
|
||||
Core()->cmdRaw(QString("afvn %1 %2").arg(newName).arg(desc.name));
|
||||
}
|
||||
|
||||
// Refresh the views to reflect the changes to vars
|
||||
|
Loading…
Reference in New Issue
Block a user