mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
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
This commit is contained in:
parent
25e1eda6ba
commit
0780e3a09e
@ -255,7 +255,7 @@ void PopupChatDialog::addChatMsg(ChatInfo *ci)
|
||||
QString message = QString::fromStdWString(ci -> msg);
|
||||
|
||||
//replace http://, https:// and www. with <a href> 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user