mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Set Analysis configuration before executing Analysis commands (#1048)
* Set analysis configurations defined by the user before executing the analysis commands (fixes #1047) * Remove (probably) unnecessary lines which reset settings determined by the user
This commit is contained in:
parent
8e76a9aca5
commit
4505d187c4
@ -378,10 +378,6 @@ void MainWindow::openProject(const QString &project_name)
|
|||||||
void MainWindow::finalizeOpen()
|
void MainWindow::finalizeOpen()
|
||||||
{
|
{
|
||||||
core->getOpcodes();
|
core->getOpcodes();
|
||||||
|
|
||||||
// Override any incorrect setting saved in the project
|
|
||||||
core->setSettings();
|
|
||||||
|
|
||||||
core->updateSeek();
|
core->updateSeek();
|
||||||
core->message(tr(" > Populating UI"));
|
core->message(tr(" > Populating UI"));
|
||||||
refreshAll();
|
refreshAll();
|
||||||
|
@ -178,6 +178,16 @@ QList<QString> InitialOptionsDialog::getSelectedAdvancedAnalCmds()
|
|||||||
{
|
{
|
||||||
QList<QString> advanced = QList<QString>();
|
QList<QString> advanced = QList<QString>();
|
||||||
if (ui->analSlider->value() == 3) {
|
if (ui->analSlider->value() == 3) {
|
||||||
|
// Enable analysis configurations before executing analysis commands
|
||||||
|
if (ui->jmptbl->isChecked()) {
|
||||||
|
advanced << "e! anal.jmptbl";
|
||||||
|
}
|
||||||
|
if (ui->pushret->isChecked()) {
|
||||||
|
advanced << "e! anal.pushret";
|
||||||
|
}
|
||||||
|
if (ui->hasnext->isChecked()) {
|
||||||
|
advanced << "e! anal.hasnext";
|
||||||
|
}
|
||||||
if (ui->aa_symbols->isChecked()) {
|
if (ui->aa_symbols->isChecked()) {
|
||||||
advanced << "aa";
|
advanced << "aa";
|
||||||
}
|
}
|
||||||
@ -208,15 +218,6 @@ QList<QString> InitialOptionsDialog::getSelectedAdvancedAnalCmds()
|
|||||||
if (ui->aap_preludes->isChecked()) {
|
if (ui->aap_preludes->isChecked()) {
|
||||||
advanced << "aap";
|
advanced << "aap";
|
||||||
}
|
}
|
||||||
if (ui->jmptbl->isChecked()) {
|
|
||||||
advanced << "e! anal.jmptbl";
|
|
||||||
}
|
|
||||||
if (ui->pushret->isChecked()) {
|
|
||||||
advanced << "e! anal.pushret";
|
|
||||||
}
|
|
||||||
if (ui->hasnext->isChecked()) {
|
|
||||||
advanced << "e! anal.hasnext";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return advanced;
|
return advanced;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user