From 55c514d8505f47348aaf3df492c0fb1fe3e62b20 Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 8 Feb 2010 20:43:23 +0000 Subject: [PATCH] use CreatForumMsg when replying from News Feed git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2242 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/feeds/ForumMsgItem.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/ForumMsgItem.cpp b/retroshare-gui/src/gui/feeds/ForumMsgItem.cpp index 8f3e38535..728eaae42 100644 --- a/retroshare-gui/src/gui/feeds/ForumMsgItem.cpp +++ b/retroshare-gui/src/gui/feeds/ForumMsgItem.cpp @@ -24,6 +24,8 @@ #include "FeedHolder.h" #include "rsiface/rsforums.h" +#include "gui/forums/CreateForumMsg.h" + #include @@ -76,7 +78,7 @@ void ForumMsgItem::updateItemStatic() if (!(fi.forumFlags & RS_DISTRIB_SUBSCRIBED)) { unsubscribeButton->setEnabled(false); - replyButton->setEnabled(false); + replyButton->setEnabled(true); } else { @@ -254,7 +256,10 @@ void ForumMsgItem::replyToPost() #endif if (mParent) { - mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, mPostId); + //mParent->openMsg(FEEDHOLDER_MSG_FORUM, mForumId, mPostId); + CreateForumMsg *cfm = new CreateForumMsg(mForumId, mPostId); + cfm->show(); } + }