mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:39:39 +03:00
- Fixed compilation warnings
- Started work on fastresume reject alerts
This commit is contained in:
parent
e606d04098
commit
a0e32fefd7
4 changed files with 6 additions and 4 deletions
2
TODO
2
TODO
|
@ -47,8 +47,6 @@
|
|||
- .ico support?
|
||||
- display debug when fastresume data is rejected
|
||||
- Download/Finished lists cleanup
|
||||
- Use valgrind to detect memory leaks
|
||||
- optimize includes for compilation speed
|
||||
- Move transfer lists refreshers to threads
|
||||
- Wait for some bug fixes in libtorrent :
|
||||
- upload/download limit per torrent
|
||||
|
|
|
@ -890,6 +890,9 @@ void bittorrent::readAlerts(){
|
|||
else if (peer_blocked_alert* p = dynamic_cast<peer_blocked_alert*>(a.get())){
|
||||
emit peerBlocked(QString(p->ip.to_string().c_str()));
|
||||
}
|
||||
else if (fastresume_rejected_alert* p = dynamic_cast<fastresume_rejected_alert*>(a.get())){
|
||||
emit fastResumeDataRejected(QString(p->handle.name().c_str()));
|
||||
}
|
||||
a = s->pop_alert();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,6 +146,7 @@ class bittorrent : public QObject{
|
|||
void allTorrentsFinishedChecking();
|
||||
void peerBlocked(QString);
|
||||
void downloadFromUrlFailure(QString url, QString reason);
|
||||
void fastResumeDataRejected(QString name);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ void properties::deleteSelectedTrackers(){
|
|||
}
|
||||
|
||||
void properties::riseSelectedTracker(){
|
||||
unsigned int i;
|
||||
unsigned int i = 0;
|
||||
std::vector<announce_entry> trackers = h.trackers();
|
||||
QList<QListWidgetItem *> selectedItems;
|
||||
selectedItems = trackersURLS->selectedItems();
|
||||
|
@ -318,7 +318,7 @@ void properties::riseSelectedTracker(){
|
|||
}
|
||||
|
||||
void properties::lowerSelectedTracker(){
|
||||
unsigned int i;
|
||||
unsigned int i = 0;
|
||||
std::vector<announce_entry> trackers = h.trackers();
|
||||
QList<QListWidgetItem *> selectedItems;
|
||||
selectedItems = trackersURLS->selectedItems();
|
||||
|
|
Loading…
Reference in a new issue