done: 'replay to all' button in 'messages' page now works

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1033 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
beardog_uk 2009-02-11 18:43:37 +00:00
parent 08357e3bdd
commit 6c00b15f03
3 changed files with 24 additions and 3 deletions

View File

@ -30,6 +30,10 @@
#include "rsiface/rsmsgs.h" #include "rsiface/rsmsgs.h"
#include "rsiface/rsfiles.h" #include "rsiface/rsfiles.h"
#include <sstream> #include <sstream>
#include <list>
#include <iostream>
#include <string>
#include <QContextMenuEvent> #include <QContextMenuEvent>
#include <QMenu> #include <QMenu>
@ -286,6 +290,16 @@ void MessagesDialog::replyallmessage()
nMsgDialog->insertPastedText(cited_text) ; nMsgDialog->insertPastedText(cited_text) ;
nMsgDialog->addRecipient( msgInfo.srcId ) ; nMsgDialog->addRecipient( msgInfo.srcId ) ;
std::list<std::string> tl ( msgInfo.msgto );
for( std::list<std::string>::iterator tli = tl.begin();
tli!= tl.end() ;
tli++ )
{
nMsgDialog->addRecipient( *tli ) ;
}
nMsgDialog->show(); nMsgDialog->show();
nMsgDialog->activateWindow(); nMsgDialog->activateWindow();
} }

View File

@ -232,6 +232,13 @@ void ChanMsgDialog::channelstreeViewCostumPopupMenu( QPoint point )
void ChanMsgDialog::closeEvent (QCloseEvent * event) void ChanMsgDialog::closeEvent (QCloseEvent * event)
{ {
//=== uncheck all repecient's boxes =======
QTreeWidget *sendWidget = ui.msgSendList;
for(int i=0;i<sendWidget->topLevelItemCount();++i)
sendWidget->topLevelItem(i)->setCheckState(0,Qt::Unchecked) ;
event->accept(); event->accept();
return; return;
@ -597,8 +604,8 @@ void ChanMsgDialog::addRecipient(std::string id)
for(int i=0;i<sendWidget->topLevelItemCount();++i) for(int i=0;i<sendWidget->topLevelItemCount();++i)
if(sendWidget->topLevelItem(i)->text(1).toStdString() == id) if(sendWidget->topLevelItem(i)->text(1).toStdString() == id)
sendWidget->topLevelItem(i)->setCheckState(0,Qt::Checked) ; sendWidget->topLevelItem(i)->setCheckState(0,Qt::Checked) ;
else //else
sendWidget->topLevelItem(i)->setCheckState(0,Qt::Unchecked) ; //sendWidget->topLevelItem(i)->setCheckState(0,Qt::Unchecked) ;
} }
/* First the Msg (People) ones */ /* First the Msg (People) ones */