- create channel now uses own createchannel widget rather than forums

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2825 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-05-02 11:41:23 +00:00
parent 5a98d72376
commit 564e25908e

View File

@ -43,6 +43,7 @@
#include "GenCertDialog.h"
#include "gui/connect/ConnectFriendWizard.h"
#include "gui/forums/CreateForum.h"
#include "gui/channels/CreateChannel.h"
#include <sstream>
#include <time.h>
@ -1550,7 +1551,8 @@ void PeersDialog::on_actionCreate_New_Forum_activated()
void PeersDialog::on_actionCreate_New_Channel_activated()
{
CreateForum *cf = new CreateForum(NULL, false);
CreateChannel *cf = new CreateChannel(NULL);
((MainPageStack*)this->parent())->setCurrentIndex(6); // swtich to forum view
cf->setWindowTitle(tr("Create a new Channel"));
@ -1559,7 +1561,7 @@ void PeersDialog::on_actionCreate_New_Channel_activated()
"color:#32CD32;\">%1</span>");
cf->ui.textlabelcreatforums->setText( titleStr.arg( tr("New Channel") ) ) ;
cf->show();
}
/** Loads own personal status */
@ -1823,4 +1825,4 @@ void PeersDialog::setCurrentFileName(const QString &fileName)
ui.msgText->document()->setModified(false);
setWindowModified(false);
}
}