mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 12:54:24 -05:00
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:
parent
08357e3bdd
commit
6c00b15f03
@ -30,6 +30,10 @@
|
||||
#include "rsiface/rsmsgs.h"
|
||||
#include "rsiface/rsfiles.h"
|
||||
#include <sstream>
|
||||
#include <list>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
|
||||
#include <QContextMenuEvent>
|
||||
#include <QMenu>
|
||||
@ -286,6 +290,16 @@ void MessagesDialog::replyallmessage()
|
||||
|
||||
nMsgDialog->insertPastedText(cited_text) ;
|
||||
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->activateWindow();
|
||||
}
|
||||
|
@ -232,6 +232,13 @@ void ChanMsgDialog::channelstreeViewCostumPopupMenu( QPoint point )
|
||||
|
||||
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();
|
||||
return;
|
||||
|
||||
@ -597,8 +604,8 @@ void ChanMsgDialog::addRecipient(std::string id)
|
||||
for(int i=0;i<sendWidget->topLevelItemCount();++i)
|
||||
if(sendWidget->topLevelItem(i)->text(1).toStdString() == id)
|
||||
sendWidget->topLevelItem(i)->setCheckState(0,Qt::Checked) ;
|
||||
else
|
||||
sendWidget->topLevelItem(i)->setCheckState(0,Qt::Unchecked) ;
|
||||
//else
|
||||
//sendWidget->topLevelItem(i)->setCheckState(0,Qt::Unchecked) ;
|
||||
}
|
||||
|
||||
/* First the Msg (People) ones */
|
||||
|
@ -56,7 +56,7 @@ void insertTitleText(std::string title);
|
||||
void insertPastedText(std::string msg) ;
|
||||
void insertForwardPastedText(std::string msg);
|
||||
void insertMsgText(std::string msg);
|
||||
void addRecipient(std::string id) ;
|
||||
void addRecipient(std::string id) ;
|
||||
void Create_New_Image_Tag( const QString urlremoteorlocal );
|
||||
QSettings setter;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user