mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Fix #79
This commit is contained in:
parent
377efa7050
commit
2ccef94ea5
@ -342,7 +342,7 @@ void CutterCore::renameFunction(QString prev_name, QString new_name)
|
||||
|
||||
void CutterCore::setComment(RVA addr, QString cmt)
|
||||
{
|
||||
cmd("CC " + cmt + " @ " + QString::number(addr));
|
||||
cmd("CCu base64:" + cmt.toLocal8Bit().toBase64() + " @ " + QString::number(addr));
|
||||
emit commentsChanged();
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,6 @@ CommentsDialog::~CommentsDialog() {}
|
||||
|
||||
void CommentsDialog::on_buttonBox_accepted()
|
||||
{
|
||||
// Meow
|
||||
}
|
||||
|
||||
void CommentsDialog::on_buttonBox_rejected()
|
||||
|
@ -109,15 +109,15 @@ void DisassemblyContextMenu::init()
|
||||
|
||||
void DisassemblyContextMenu::on_actionAddComment_triggered()
|
||||
{
|
||||
RAnalFunction *fcn = CutterCore::getInstance()->functionAt(offset);
|
||||
RAnalFunction *fcn = Core()->functionAt(offset);
|
||||
CommentsDialog *c = new CommentsDialog(this);
|
||||
if (c->exec())
|
||||
{
|
||||
QString comment = c->getComment();
|
||||
CutterCore::getInstance()->setComment(offset, comment);
|
||||
Core()->setComment(offset, comment);
|
||||
if (fcn)
|
||||
{
|
||||
CutterCore::getInstance()->seek(fcn->addr);
|
||||
Core()->seek(fcn->addr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user