Browse Source

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

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
c6ab0b148b
  1. 2
      src/torrentcontentmodel.cpp

2
src/torrentcontentmodel.cpp

@ -109,7 +109,7 @@ bool TorrentContentModel::setData(const QModelIndex& index, const QVariant& valu @@ -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;

Loading…
Cancel
Save