Browse Source

Fix mistake in getting value from model

adaptive-webui-19844
Anton Lashkov 8 years ago
parent
commit
1785c54b83
  1. 2
      src/gui/transferlistsortmodel.cpp

2
src/gui/transferlistsortmodel.cpp

@ -131,7 +131,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex @@ -131,7 +131,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex
const bool seedingR = (prioR < 0);
bool activeR = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(right.row())));
bool activeL = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(right.row())));
bool activeL = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(left.row())));
// Sorting rules prioritized.
// 1. Active torrents at the top

Loading…
Cancel
Save