- Refresh list and torrent numbers on torrent addition

This commit is contained in:
Christophe Dumez 2009-11-18 10:39:56 +00:00
parent 6c796ff302
commit 79e139268a
2 changed files with 6 additions and 5 deletions

View file

@ -161,6 +161,7 @@ void TransferListWidget::addTorrent(QTorrentHandle& h) {
// Select first torrent to be added
if(listModel->rowCount() == 1)
selectionModel()->setCurrentIndex(proxyModel->index(row, NAME), QItemSelectionModel::SelectCurrent|QItemSelectionModel::Rows);
refreshList();
} catch(invalid_handle e) {
// Remove added torrent
listModel->removeRow(row);