Browse Source

Merge pull request #6340 from Chocobo1/contentSort

Use case-insensitive comparsion for torrent content window
adaptive-webui-19844
sledgehammer999 8 years ago committed by GitHub
parent
commit
bcd6baa793
  1. 2
      src/gui/torrentcontentfiltermodel.cpp

2
src/gui/torrentcontentfiltermodel.cpp

@ -90,7 +90,7 @@ bool TorrentContentFilterModel::lessThan(const QModelIndex &left, const QModelIn
TorrentContentModelItem::ItemType rightType = m_model->itemType(m_model->index(right.row(), 0, right.parent())); TorrentContentModelItem::ItemType rightType = m_model->itemType(m_model->index(right.row(), 0, right.parent()));
if (leftType == rightType) if (leftType == rightType)
return Utils::String::naturalCompareCaseSensitive(vL, vR); return Utils::String::naturalCompareCaseInsensitive(vL, vR);
else if (leftType == TorrentContentModelItem::FolderType && sortOrder() == Qt::AscendingOrder) else if (leftType == TorrentContentModelItem::FolderType && sortOrder() == Qt::AscendingOrder)
return true; return true;
else else

Loading…
Cancel
Save