From 771ae5ba586458cad3476bf268d506846a0fa228 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 18 Jun 2013 21:24:27 +0000 Subject: [PATCH] fixed transfer of color when pasting text (patch from AC) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6441 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index 46a8beacf..a2b9640a1 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -522,12 +522,14 @@ void ChatWidget::pasteText(const QString& S) { //std::cerr << "In paste link" << std::endl; ui->chatTextEdit->insertHtml(S); + setColorAndFont(); } void ChatWidget::pasteLink() { //std::cerr << "In paste link" << std::endl; ui->chatTextEdit->insertHtml(RSLinkClipboard::toHtml()); + setColorAndFont(); } void ChatWidget::pasteOwnCertificateLink() @@ -538,6 +540,7 @@ void ChatWidget::pasteOwnCertificateLink() if( link.createCertificate(ownId) ) { ui->chatTextEdit->insertHtml(link.toHtml() + " "); + setColorAndFont(); } }