From 82e2ddf6e6831dcd8cbd0b05863a937307e7ea49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 1 Dec 2017 10:12:05 +0100 Subject: [PATCH] Do not seek after adding a comment --- src/menus/DisassemblyContextMenu.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index 982b683e..068c3a29 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -151,16 +151,11 @@ QKeySequence DisassemblyContextMenu::getDisplayOptionsSequence() const void DisassemblyContextMenu::on_actionAddComment_triggered() { - RAnalFunction *fcn = Core()->functionAt(offset); CommentsDialog *c = new CommentsDialog(this); if (c->exec()) { QString comment = c->getComment(); Core()->setComment(offset, comment); - if (fcn) - { - Core()->seek(fcn->addr); - } } }