mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Use cmdRaw and cmdRawAt in CommentsDialog
This commit is contained in:
parent
b735cb6f23
commit
07a5b4a748
@ -38,7 +38,7 @@ void CommentsDialog::setComment(const QString &comment)
|
|||||||
|
|
||||||
void CommentsDialog::addOrEditComment(RVA offset, QWidget *parent)
|
void CommentsDialog::addOrEditComment(RVA offset, QWidget *parent)
|
||||||
{
|
{
|
||||||
QString oldComment = Core()->cmd("CC." + RAddressString(offset));
|
QString oldComment = Core()->cmdRawAt("CC.", offset);
|
||||||
// Remove newline at the end added by cmd
|
// Remove newline at the end added by cmd
|
||||||
oldComment.remove(oldComment.length() - 1, 1);
|
oldComment.remove(oldComment.length() - 1, 1);
|
||||||
CommentsDialog c(parent);
|
CommentsDialog c(parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user