mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
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:
parent
73ff746773
commit
eb8d628d2a
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user