Browse Source

Make torrent sorting case insensitive (Closes #857154)

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
6c10936f6d
  1. 1
      src/torrentfilesmodel.h
  2. 1
      src/transferlistwidget.cpp

1
src/torrentfilesmodel.h

@ -620,6 +620,7 @@ public: @@ -620,6 +620,7 @@ public:
setFilterKeyColumn(TorrentFileItem::COL_NAME);
setFilterRole(Qt::DisplayRole);
setDynamicSortFilter(true);
setSortCaseSensitivity(Qt::CaseInsensitive);
}
~TorrentFilesFilterModel() {

1
src/transferlistwidget.cpp

@ -94,6 +94,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window, @@ -94,6 +94,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
nameFilterModel->setSourceModel(statusFilterModel);
nameFilterModel->setFilterKeyColumn(TorrentModelItem::TR_NAME);
nameFilterModel->setFilterRole(Qt::DisplayRole);
nameFilterModel->setSortCaseSensitivity(Qt::CaseInsensitive);
setModel(nameFilterModel);

Loading…
Cancel
Save