mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Removed a useless function
- Stop resfreshing trackers errors in torrent properties because this is annoying when you're trying to read them
This commit is contained in:
@@ -771,7 +771,8 @@ void bittorrent::setUploadRateLimit(int rate){
|
||||
// This function will apply to same ratio to all torrents
|
||||
void bittorrent::setGlobalRatio(float ratio){
|
||||
std::vector<torrent_handle> handles = s->get_torrents();
|
||||
for(unsigned int i=0; i<handles.size(); ++i){
|
||||
unsigned int nbHandles = handles.size();
|
||||
for(unsigned int i=0; i<nbHandles; ++i){
|
||||
torrent_handle h = handles[i];
|
||||
if(!h.is_valid()){
|
||||
qDebug("/!\\ Error: Invalid handle");
|
||||
@@ -1085,19 +1086,6 @@ std::vector<torrent_handle> bittorrent::getTorrentHandles() const{
|
||||
return s->get_torrents();
|
||||
}
|
||||
|
||||
// Return a vector with all finished torrent handles in it
|
||||
QList<torrent_handle> bittorrent::getFinishedTorrentHandles() const{
|
||||
QList<torrent_handle> finished;
|
||||
std::vector<torrent_handle> handles;
|
||||
for(unsigned int i=0; i<handles.size(); ++i){
|
||||
torrent_handle h = handles[i];
|
||||
if(h.is_seed()){
|
||||
finished << h;
|
||||
}
|
||||
}
|
||||
return finished;
|
||||
}
|
||||
|
||||
QStringList bittorrent::getUncheckedTorrentsList() const{
|
||||
return torrentsUnchecked;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user