From 54e3ca3485b6c5a4938c55d99b1a353e59bc0399 Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 10 Feb 2019 18:50:48 +0100 Subject: [PATCH] Hide Site labels when theres is no link --- retroshare-gui/src/gui/Posted/PostedItem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index 4a38c2a5a..efa2de784 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -298,6 +298,12 @@ void PostedItem::fill() ui->titleLabel->setText(messageName()); } + + if(urlarray == NULL) + { + ui->siteLabel->hide(); + ui->siteBoldLabel->hide(); + } ui->siteLabel->setText(sitestr);