From c6ab0b148b203d8408a7677d6dd4d4af154d9435 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 2 Jul 2012 22:51:03 +0300 Subject: [PATCH] Fix model update when setting the priority of a folder in torrent content --- src/torrentcontentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrentcontentmodel.cpp b/src/torrentcontentmodel.cpp index e87b4eba5..5654edceb 100644 --- a/src/torrentcontentmodel.cpp +++ b/src/torrentcontentmodel.cpp @@ -109,7 +109,7 @@ bool TorrentContentModel::setData(const QModelIndex& index, const QVariant& valu 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;