Fixed creation of the RetroShare links as anchor.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4189 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-05-06 15:04:35 +00:00
parent 31b950a8fe
commit e34505c1d2

View File

@ -476,13 +476,13 @@ QString RetroShareLink::niceName() const
QString RetroShareLink::toHtml() const QString RetroShareLink::toHtml() const
{ {
QString html = "<a href=\"" + toString(true); QString html = "<a href=\"" + toString(true) + "\"";
QString linkTitle = title(); QString linkTitle = title();
if (!linkTitle.isEmpty()) { if (!linkTitle.isEmpty()) {
html += " title=\"" + linkTitle + "\""; html += " title=\"" + linkTitle + "\"";
} }
html += "\">" + niceName() + "</a>" ; html += ">" + niceName() + "</a>" ;
return html; return html;
} }