Added to check if link is valid

This commit is contained in:
defnax 2022-01-16 20:32:08 +01:00
parent 6bcecec93f
commit d508a8ea20

View file

@ -590,11 +590,14 @@ void CreateGxsForumMsg::fileHashingFinished(QList<HashedFile> hashedFiles)
if (!image.isEmpty()) {
mesgString += QString("<img src=\"%1\">").arg(image);
}
if (link.valid()) {
mesgString += link.toHtmlSize() + "<br>";
} else
{
}
} else {
if (link.valid()) {
mesgString += "<br>" + link.toHtmlSize() + "<br>";
}
}
}