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); - } } }