From f5880bf6551f6ac40edd821c2a232f069066e130 Mon Sep 17 00:00:00 2001 From: drbob Date: Mon, 16 Feb 2015 11:05:33 +0000 Subject: [PATCH] Fixed GUI - to allow people to post to subscribed Topics. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7945 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/Posted/PostedListWidget.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp index 6fcf4b440..60cecec7c 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp @@ -300,15 +300,7 @@ void PostedListWidget::loadVoteData(const uint32_t &/*token*/) void PostedListWidget::insertPostedDetails(const RsPostedGroup &group) { - if (group.mMeta.mSubscribeFlags & GXS_SERV::GROUP_SUBSCRIBE_PUBLISH) - { - mStateHelper->setWidgetEnabled(ui->submitPostButton, true); - } - else - { - mStateHelper->setWidgetEnabled(ui->submitPostButton, false); - } - + mStateHelper->setWidgetEnabled(ui->submitPostButton, IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags)); ui->subscribeToolButton->setSubscribed(IS_GROUP_SUBSCRIBED(group.mMeta.mSubscribeFlags)); }