From 63d8de8848c60f491b15922336e04790deb8f99a Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 4 Mar 2010 16:44:20 +0000 Subject: [PATCH] fixed to display pasted plaintext retroshare link in public chat in html format to get click able. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2483 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 2aabe90e2..5cd3cbf07 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -955,7 +955,7 @@ void PeersDialog::insertChat() } //replace http://, https:// and www. with links - QRegExp rx("(https?://[^ <>]*)|(www\\.[^ <>]*)"); + QRegExp rx("(retroshare://[^ <>]*)|(https?://[^ <>]*)|(www\\.[^ <>]*)"); int count = 0; int pos = 200; //ignore the first 200 char because of the standard DTD ref while ( (pos = rx.indexIn(extraTxt, pos)) != -1 ) {