mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
bug fixed for deleting selected messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2652 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
904ecffe1f
commit
27c2382d8c
@ -968,9 +968,11 @@ void MessagesDialog::removemessage()
|
|||||||
{
|
{
|
||||||
QList<QModelIndex> selectedIndexList= ui.messagestreeView->selectionModel() -> selectedIndexes ();
|
QList<QModelIndex> selectedIndexList= ui.messagestreeView->selectionModel() -> selectedIndexes ();
|
||||||
QList<int> rowList;
|
QList<int> rowList;
|
||||||
|
QModelIndex selectedIndex;
|
||||||
for(QList<QModelIndex>::iterator it = selectedIndexList.begin(); it != selectedIndexList.end(); it++)
|
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)
|
if (rowList.contains(row) == false)
|
||||||
{
|
{
|
||||||
rowList.append(row);
|
rowList.append(row);
|
||||||
|
Loading…
Reference in New Issue
Block a user