From 27c2382d8caaf05251060c601d5df36b6d1e2f0e Mon Sep 17 00:00:00 2001 From: nishant Date: Sun, 28 Mar 2010 15:03:20 +0000 Subject: [PATCH] bug fixed for deleting selected messages git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2652 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessagesDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index 5f0be654b..2b3c8e371 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -968,9 +968,11 @@ void MessagesDialog::removemessage() { QList selectedIndexList= ui.messagestreeView->selectionModel() -> selectedIndexes (); QList rowList; + QModelIndex selectedIndex; for(QList::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);