mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Remove dos newline characters from comments edited in UI
This commit is contained in:
@@ -57,6 +57,7 @@ CommentView::CommentView(ICaptureContext &ctx, QWidget *parent)
|
||||
if(type & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT | SC_MOD_BEFOREINSERT | SC_MOD_BEFOREDELETE))
|
||||
{
|
||||
QString text = QString::fromUtf8(m_commentsEditor->getText(m_commentsEditor->textLength() + 1));
|
||||
text.remove(QLatin1Char('\r'));
|
||||
m_Ctx.SetNotes(lit("comments"), text);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user