mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Catching invalid_handle exception
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user