mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
Added to check if link is valid
This commit is contained in:
parent
6bcecec93f
commit
d508a8ea20
1 changed files with 7 additions and 4 deletions
|
@ -590,11 +590,14 @@ void CreateGxsForumMsg::fileHashingFinished(QList<HashedFile> hashedFiles)
|
||||||
if (!image.isEmpty()) {
|
if (!image.isEmpty()) {
|
||||||
mesgString += QString("<img src=\"%1\">").arg(image);
|
mesgString += QString("<img src=\"%1\">").arg(image);
|
||||||
}
|
}
|
||||||
|
if (link.valid()) {
|
||||||
mesgString += link.toHtmlSize() + "<br>";
|
mesgString += link.toHtmlSize() + "<br>";
|
||||||
} else
|
}
|
||||||
{
|
} else {
|
||||||
|
if (link.valid()) {
|
||||||
mesgString += "<br>" + link.toHtmlSize() + "<br>";
|
mesgString += "<br>" + link.toHtmlSize() + "<br>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue