mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-08 15:06:03 -05:00
Fix Quote Lines With Image
When get text with image from toPlainText(), a (-4) char is inserted.
This commit is contained in:
parent
70bf938654
commit
1d2be232f0
@ -1693,6 +1693,7 @@ void ChatWidget::quote()
|
|||||||
{
|
{
|
||||||
QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
|
QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
|
||||||
text = sl.join("\n>");
|
text = sl.join("\n>");
|
||||||
|
text.replace(QChar(-4),"");//Char used when image on text.
|
||||||
emit ui->chatTextEdit->append(QString(">") + text);
|
emit ui->chatTextEdit->append(QString(">") + text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ void MimeTextEdit::pasteOwnCertificateLink()
|
|||||||
|
|
||||||
void MimeTextEdit::pastePlainText()
|
void MimeTextEdit::pastePlainText()
|
||||||
{
|
{
|
||||||
insertPlainText(QApplication::clipboard()->text());
|
insertPlainText(QApplication::clipboard()->text().remove(QChar(-4)));//Char used when image on text.
|
||||||
}
|
}
|
||||||
|
|
||||||
void MimeTextEdit::spoiler()
|
void MimeTextEdit::spoiler()
|
||||||
|
@ -1067,6 +1067,7 @@ QString RsHtml::makeQuotedText(RSTextBrowser *browser)
|
|||||||
}
|
}
|
||||||
QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
|
QStringList sl = text.split(QRegExp("[\r\n]"),QString::SkipEmptyParts);
|
||||||
text = sl.join("\n>");
|
text = sl.join("\n>");
|
||||||
|
text.replace(QChar(-4),"");//Char used when image on text.
|
||||||
return QString(">") + text;
|
return QString(">") + text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user