"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dialogs/EditVariablesDialog.cpp" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

EditVariablesDialog.cpp  (cutter-1.10.2):EditVariablesDialog.cpp  (cutter-1.10.3)
skipping to change at line 17 skipping to change at line 17
#include <QPushButton> #include <QPushButton>
EditVariablesDialog::EditVariablesDialog(RVA offset, QString initialVar, QWidget *parent) : EditVariablesDialog::EditVariablesDialog(RVA offset, QString initialVar, QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::EditVariablesDialog) ui(new Ui::EditVariablesDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(applyFields())); connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(applyFields()));
connect(ui->dropdownLocalVars, SIGNAL(currentIndexChanged(int)), SLOT(update Fields())); connect(ui->dropdownLocalVars, SIGNAL(currentIndexChanged(int)), SLOT(update Fields()));
QString fcnName = Core()->cmd(QString("afn @ %1").arg(offset)).trimmed(); QString fcnName = Core()->cmdRawAt("afn.", offset).trimmed();
setWindowTitle(tr("Set Variable Types for Function: %1").arg(fcnName)); setWindowTitle(tr("Set Variable Types for Function: %1").arg(fcnName));
variables = Core()->getVariables(offset); variables = Core()->getVariables(offset);
int currentItemIndex = -1; int currentItemIndex = -1;
int index = 0; int index = 0;
for (const VariableDescription &var : variables) { for (const VariableDescription &var : variables) {
ui->dropdownLocalVars->addItem(var.name, QVariant::fromValue(var)); ui->dropdownLocalVars->addItem(var.name, QVariant::fromValue(var));
if (var.name == initialVar) { if (var.name == initialVar) {
currentItemIndex = index; currentItemIndex = index;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)