Browse Source

- Make sure a torrent is always selected when we switch filters

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
6ecde51e45
  1. 3
      src/TransferListWidget.cpp

3
src/TransferListWidget.cpp

@ -828,4 +828,7 @@ void TransferListWidget::applyFilter(int f) { @@ -828,4 +828,7 @@ void TransferListWidget::applyFilter(int f) {
default:
proxyModel->setFilterRegExp(QRegExp());
}
// Select first item if nothing is selected
if(selectionModel()->selectedRows(0).empty() && proxyModel->rowCount() > 0)
selectionModel()->setCurrentIndex(proxyModel->index(0, NAME), QItemSelectionModel::SelectCurrent|QItemSelectionModel::Rows);
}

Loading…
Cancel
Save