Use cmdRaw and cmdRawAt in CommentsDialog

This commit is contained in:
itayc0hen 2020-03-20 20:12:09 +02:00 committed by Itay Cohen
parent b735cb6f23
commit 07a5b4a748

View File

@ -38,7 +38,7 @@ void CommentsDialog::setComment(const QString &comment)
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
oldComment.remove(oldComment.length() - 1, 1);
CommentsDialog c(parent);