From 0780e3a09e38249c854f1b281ccc4167865769a7 Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 4 Mar 2010 14:15:30 +0000 Subject: [PATCH] fixed to get click able the retroshare links in privat chat git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2481 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/chat/PopupChatDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index 764ef0884..d6e608fb6 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -255,7 +255,7 @@ void PopupChatDialog::addChatMsg(ChatInfo *ci) QString message = QString::fromStdWString(ci -> msg); //replace http://, https:// and www. with links - QRegExp rx("(https?://[^ <>]*)|(www\\.[^ <>]*)"); + QRegExp rx("(retroshare://[^ <>]*)|(https?://[^ <>]*)|(www\\.[^ <>]*)"); int count = 0; int pos = 100; //ignore the first 100 char because of the standard DTD ref while ( (pos = rx.indexIn(message, pos)) != -1 ) { @@ -949,3 +949,5 @@ void PopupChatDialog::dragEnterEvent(QDragEnterEvent *event) std::cerr << std::endl; } } + +