removed disable/enable on GxsForumPopup Menu, as it prevented us from subscribing to forums.

The variable subscribeFlags is wrong ( = -1 ), and somehow broken.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6120 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2013-02-10 18:59:57 +00:00
parent 73ff746773
commit eb8d628d2a

View File

@ -165,11 +165,26 @@ void GxsForumsDialog::forumListCustomPopupMenu(QPoint /*point*/)
QMenu contextMnu(this);
std::cerr << "GxsForumsDialog::forumListCustomPopupMenu()";
std::cerr << std::endl;
std::cerr << " mForumId: " << mForumId;
std::cerr << std::endl;
std::cerr << " subscribeFlags: " << subscribeFlags;
std::cerr << std::endl;
std::cerr << " IS_GROUP_SUBSCRIBED(): " << IS_GROUP_SUBSCRIBED(subscribeFlags);
std::cerr << std::endl;
std::cerr << " IS_GROUP_ADMIN(): " << IS_GROUP_ADMIN(subscribeFlags);
std::cerr << std::endl;
std::cerr << std::endl;
QAction *action = contextMnu.addAction(QIcon(IMAGE_SUBSCRIBE), tr("Subscribe to Forum"), this, SLOT(subscribeToForum()));
action->setDisabled (mForumId.empty() || IS_GROUP_SUBSCRIBED(subscribeFlags));
// TODO DISABLED CONDITION IS WRONG, as subscribeFlags is = -1....
//action->setDisabled (mForumId.empty() || IS_GROUP_SUBSCRIBED(subscribeFlags));
action = contextMnu.addAction(QIcon(IMAGE_UNSUBSCRIBE), tr("Unsubscribe to Forum"), this, SLOT(unsubscribeToForum()));
action->setEnabled (!mForumId.empty() && IS_GROUP_SUBSCRIBED(subscribeFlags));
// TODO DISABLED CONDITION IS WRONG, as subscribeFlags is = -1....
//action->setEnabled (!mForumId.empty() && IS_GROUP_SUBSCRIBED(subscribeFlags));
if (!Settings->getForumOpenAllInNewTab()) {
action = contextMnu.addAction(QIcon(""), tr("Open in new tab"), this, SLOT(openInNewTab()));