From d508a8ea200d34294ad4b380e6265466e4dd7af6 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 16 Jan 2022 20:32:08 +0100 Subject: [PATCH] Added to check if link is valid --- .../src/gui/gxsforums/CreateGxsForumMsg.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/gxsforums/CreateGxsForumMsg.cpp b/retroshare-gui/src/gui/gxsforums/CreateGxsForumMsg.cpp index 0c3669c6d..ea05927cc 100644 --- a/retroshare-gui/src/gui/gxsforums/CreateGxsForumMsg.cpp +++ b/retroshare-gui/src/gui/gxsforums/CreateGxsForumMsg.cpp @@ -590,10 +590,13 @@ void CreateGxsForumMsg::fileHashingFinished(QList hashedFiles) if (!image.isEmpty()) { mesgString += QString("").arg(image); } - mesgString += link.toHtmlSize() + "
"; - } else - { - mesgString += "
" + link.toHtmlSize() + "
"; + if (link.valid()) { + mesgString += link.toHtmlSize() + "
"; + } + } else { + if (link.valid()) { + mesgString += "
" + link.toHtmlSize() + "
"; + } } }