mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- BUGFIX: Catching invalid_handle exception to avoid rare crashes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.4.1
|
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.4.1
|
||||||
- BUGFIX: Fix problems when changing save path (if using temporary download folder)
|
- BUGFIX: Fix problems when changing save path (if using temporary download folder)
|
||||||
- BUGFIX: Display real save path instead of the temporary one in torrent properties
|
- BUGFIX: Display real save path instead of the temporary one in torrent properties
|
||||||
|
- BUGFIX: Catching invalid_handle exception to avoid rare crashes
|
||||||
|
|
||||||
* Thu Aug 13 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.4.0
|
* Thu Aug 13 2009 - Christophe Dumez <chris@qbittorrent.org> - v1.4.0
|
||||||
- FEATURE: Display swarm information in lists
|
- FEATURE: Display swarm information in lists
|
||||||
|
|||||||
@@ -267,6 +267,7 @@ void FinishedTorrents::on_actionSet_upload_limit_triggered(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FinishedTorrents::updateTorrent(QTorrentHandle h) {
|
void FinishedTorrents::updateTorrent(QTorrentHandle h) {
|
||||||
|
if(!h.is_valid()) return;
|
||||||
QString hash = h.hash();
|
QString hash = h.hash();
|
||||||
int row = getRowFromHash(hash);
|
int row = getRowFromHash(hash);
|
||||||
if(row == -1){
|
if(row == -1){
|
||||||
|
|||||||
@@ -1420,6 +1420,7 @@ void GUI::updateLists(bool force) {
|
|||||||
for(torrentIT = torrents.begin(); torrentIT != torrents.end(); torrentIT++) {
|
for(torrentIT = torrents.begin(); torrentIT != torrents.end(); torrentIT++) {
|
||||||
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
||||||
if(!h.is_valid()) continue;
|
if(!h.is_valid()) continue;
|
||||||
|
try {
|
||||||
if(h.is_seed()) {
|
if(h.is_seed()) {
|
||||||
// Update in finished list
|
// Update in finished list
|
||||||
finishedTorrentTab->updateTorrent(h);
|
finishedTorrentTab->updateTorrent(h);
|
||||||
@@ -1431,6 +1432,7 @@ void GUI::updateLists(bool force) {
|
|||||||
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+h.hash()+".finished");
|
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+h.hash()+".finished");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch(invalid_handle) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(displaySpeedInTitle) {
|
if(displaySpeedInTitle) {
|
||||||
|
|||||||
@@ -482,6 +482,7 @@ QStringList DownloadingTorrents::getSelectedTorrents(bool only_one) const{
|
|||||||
// get information from torrent handles and
|
// get information from torrent handles and
|
||||||
// update download list accordingly
|
// update download list accordingly
|
||||||
bool DownloadingTorrents::updateTorrent(QTorrentHandle h) {
|
bool DownloadingTorrents::updateTorrent(QTorrentHandle h) {
|
||||||
|
if(!h.is_valid()) return false;
|
||||||
bool added = false;
|
bool added = false;
|
||||||
try{
|
try{
|
||||||
QString hash = h.hash();
|
QString hash = h.hash();
|
||||||
|
|||||||
Reference in New Issue
Block a user