From 17b7ff3fd25dbf56fd9c811212b8ec81c1ff67be Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 2 Jul 2012 22:52:55 +0300 Subject: [PATCH] Fix possible model update problem when setting the priority of a folder in torrent content --- src/torrentfilesmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrentfilesmodel.h b/src/torrentfilesmodel.h index ba23b44c5..d78dbccb0 100644 --- a/src/torrentfilesmodel.h +++ b/src/torrentfilesmodel.h @@ -415,7 +415,7 @@ public: item->setPriority(prio::IGNORED); else item->setPriority(prio::NORMAL); - emit dataChanged(this->index(0,0), this->index(rowCount(), columnCount())); + emit dataChanged(this->index(0,0), this->index(rowCount()-1, columnCount()-1)); emit filteredFilesChanged(); } return true;