Enabled Post to Forum for ForumNewItem

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2985 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-23 23:02:15 +00:00
parent c3e1a71279
commit b4a4ce07af
3 changed files with 21 additions and 6 deletions

View file

@ -24,6 +24,7 @@
#include "FeedHolder.h"
#include "rsiface/rsforums.h"
#include "gui/forums/CreateForumMsg.h"
#include <iostream>
@ -49,7 +50,7 @@ ForumNewItem::ForumNewItem(FeedHolder *parent, uint32_t feedId, std::string foru
/* specific ones */
connect( subscribeButton, SIGNAL( clicked( void ) ), this, SLOT( subscribeForum ( void ) ) );
// To Cheeky to post on a brand new forum....
//connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
connect( postButton, SIGNAL( clicked( void ) ), this, SLOT( postToForum ( void ) ) );
small();
updateItemStatic();
@ -79,12 +80,12 @@ void ForumNewItem::updateItemStatic()
if (fi.subscribeFlags & RS_DISTRIB_SUBSCRIBED)
{
subscribeButton->setEnabled(false);
//postButton->setEnabled(true);
postButton->setEnabled(true);
}
else
{
subscribeButton->setEnabled(true);
//postButton->setEnabled(false);
postButton->setEnabled(false);
}
@ -209,6 +210,8 @@ void ForumNewItem::postToForum()
if (mParent)
{
//mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, "");
CreateForumMsg *cfm = new CreateForumMsg(mForumId, "");
cfm->show();
}
}