From 723016e930ae9c9304578a3820a116131887b0ed Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Sun, 22 Oct 2017 19:39:44 +0300 Subject: [PATCH] fix descriptions display in Posted --- retroshare-gui/src/gui/Posted/PostedItem.cpp | 13 ++----- retroshare-gui/src/gui/Posted/PostedItem.ui | 37 ++++++++++---------- 2 files changed, 20 insertions(+), 30 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index d26b1e5c8..327608ff8 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -104,8 +104,6 @@ void PostedItem::setup() ui->clearButton->hide(); ui->readAndClearButton->hide(); - - ui->frame_notes->hide(); } bool PostedItem::setGroup(const RsPostedGroup &group, bool doFill) @@ -278,11 +276,12 @@ void PostedItem::fill() // FIX THIS UP LATER. ui->notes->setText(QString::fromUtf8(mPost.mNotes.c_str())); + if(ui->notes->text().isEmpty()) + ui->frame_notes->hide(); // differences between Feed or Top of Comment. if (mFeedHolder) { // feed. - ui->frame_notes->hide(); //frame_comment->show(); ui->commentButton->show(); @@ -303,14 +302,6 @@ void PostedItem::fill() else { // no feed. - if(ui->notes->text().isEmpty()) - { - ui->frame_notes->hide(); - } - else - { - ui->frame_notes->show(); - } //frame_comment->hide(); ui->commentButton->hide(); diff --git a/retroshare-gui/src/gui/Posted/PostedItem.ui b/retroshare-gui/src/gui/Posted/PostedItem.ui index ac9ea2a72..bebf874c2 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.ui +++ b/retroshare-gui/src/gui/Posted/PostedItem.ui @@ -60,7 +60,7 @@ - + 0 @@ -327,30 +327,29 @@ - QFrame::Box + QFrame::NoFrame QFrame::Sunken - - - - 2 - 2 - 16 - 17 - + + + 1 - - + + 1 - - - - - true - - + + + + + + + true + + + +