Merge pull request #258 from PhenomRetroShare/Fix_QuoteLinesWithImage

Fix Quote Lines With Image
This commit is contained in:
Cyril Soler 2016-01-23 13:17:12 -05:00
commit f13c81b2f5
3 changed files with 3 additions and 1 deletions

View file

@ -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);
} }
} }

View file

@ -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()

View file

@ -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;
} }