mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Refresh list and torrent numbers on torrent addition
This commit is contained in:
parent
6c796ff302
commit
79e139268a
2 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue