mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 15:20:25 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue