mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
added Start new Thread Button
added MessageBox Info when no Forum is selected git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1953 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2a107ad706
commit
5ae41c8de9
3 changed files with 36 additions and 18 deletions
|
@ -42,6 +42,7 @@
|
|||
#include <QDateTime>
|
||||
#include <QHeaderView>
|
||||
#include <QTimer>
|
||||
#include <QMessageBox>
|
||||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_MESSAGE ":/images/folder-draft.png"
|
||||
|
@ -76,7 +77,7 @@ ForumsDialog::ForumsDialog(QWidget *parent)
|
|||
|
||||
connect(ui.newForumButton, SIGNAL(clicked()), this, SLOT(newforum()));
|
||||
connect(ui.newmessageButton, SIGNAL(clicked()), this, SLOT(createmessage()));
|
||||
|
||||
connect(ui.newthreadButton, SIGNAL(clicked()), this, SLOT(showthread()));
|
||||
|
||||
connect( ui.forumTreeWidget, SIGNAL( currentItemChanged ( QTreeWidgetItem *, QTreeWidgetItem *) ), this,
|
||||
SLOT( changedForum( QTreeWidgetItem *, QTreeWidgetItem * ) ) );
|
||||
|
@ -830,10 +831,12 @@ void ForumsDialog::showthread()
|
|||
{
|
||||
if (mCurrForumId == "")
|
||||
{
|
||||
QMessageBox::information(this, tr("RetroShare"),tr("No Forum Selected!"));
|
||||
return;
|
||||
}
|
||||
|
||||
CreateForumMsg *cfm = new CreateForumMsg(mCurrForumId, "");
|
||||
cfm->setWindowTitle(tr("Start New Thread"));
|
||||
cfm->show();
|
||||
}
|
||||
|
||||
|
@ -878,10 +881,3 @@ static ForumDisplay *fui = new ForumDisplay();
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue