Fixing #625 - EditInstruction ignores reject() (#626)

* fix #625
This commit is contained in:
Itay Cohen 2018-08-17 17:34:11 +03:00 committed by GitHub
parent 336c20a955
commit 0bdda99596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ void DisassemblyContextMenu::on_actionEditInstruction_triggered()
QString oldInstruction = Core()->cmdj("aoj").array().first().toObject()["opcode"].toString(); QString oldInstruction = Core()->cmdj("aoj").array().first().toObject()["opcode"].toString();
e->setInstruction(oldInstruction); e->setInstruction(oldInstruction);
if (e->exec()) {} if (e->exec())
{ {
QString instruction = e->getInstruction(); QString instruction = e->getInstruction();
if (instruction != oldInstruction) { if (instruction != oldInstruction) {
@ -397,7 +397,7 @@ void DisassemblyContextMenu::on_actionEditBytes_triggered()
QString oldBytes = Core()->cmdj("aoj").array().first().toObject()["bytes"].toString(); QString oldBytes = Core()->cmdj("aoj").array().first().toObject()["bytes"].toString();
e->setInstruction(oldBytes); e->setInstruction(oldBytes);
if (e->exec()) {} if (e->exec())
{ {
QString bytes = e->getInstruction(); QString bytes = e->getInstruction();
if (bytes != oldBytes) { if (bytes != oldBytes) {