1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-04 19:04:30 +00:00

Fix model update when setting the priority of a folder in torrent content

This commit is contained in:
Christophe Dumez 2012-07-02 22:51:03 +03:00
parent 183453488e
commit c6ab0b148b

View File

@ -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;