mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
- Catching invalid_handle exception
This commit is contained in:
parent
a2c5afcf7c
commit
7ea30a52f5
1 changed files with 65 additions and 61 deletions
|
@ -465,6 +465,7 @@ void GUI::updateDlList(){
|
||||||
LCD_DownSpeed->display(tmp2); // DL LCD
|
LCD_DownSpeed->display(tmp2); // DL LCD
|
||||||
// browse handles
|
// browse handles
|
||||||
foreach(h, handles){
|
foreach(h, handles){
|
||||||
|
try{
|
||||||
torrent_status torrentStatus = h.status();
|
torrent_status torrentStatus = h.status();
|
||||||
QString fileName = QString(h.get_torrent_info().name().c_str());
|
QString fileName = QString(h.get_torrent_info().name().c_str());
|
||||||
if(!h.is_paused()){
|
if(!h.is_paused()){
|
||||||
|
@ -532,6 +533,9 @@ void GUI::updateDlList(){
|
||||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}catch(invalid_handle e){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue