bug fixed for deleting selected messages

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2661 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-03-29 13:12:46 +00:00
parent 4aaf6feffa
commit 748204f94f

View File

@ -968,9 +968,11 @@ void MessagesDialog::removemessage()
{
QList<QModelIndex> selectedIndexList= ui.messagestreeView->selectionModel() -> selectedIndexes ();
QList<int> rowList;
QModelIndex selectedIndex;
for(QList<QModelIndex>::iterator it = selectedIndexList.begin(); it != selectedIndexList.end(); it++)
{
int row = it->row();
selectedIndex = proxyModel->mapToSource(*it);
int row = selectedIndex.row();
if (rowList.contains(row) == false)
{
rowList.append(row);