mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- BUGFIX: Saving trackers file only when necessary
This commit is contained in:
1
TODO
1
TODO
@@ -59,3 +59,4 @@ rc8->final? changelog:
|
|||||||
- BUGFIX: Do no pause torrents before saving fastresume data anymore (no longer needed)
|
- BUGFIX: Do no pause torrents before saving fastresume data anymore (no longer needed)
|
||||||
- BUGFIX: Save fast resume data regularly (every 10 seconds) to avoid downloading from scratch if qBittorrent crashes
|
- BUGFIX: Save fast resume data regularly (every 10 seconds) to avoid downloading from scratch if qBittorrent crashes
|
||||||
- BUGFIX: Do not save fastresume data for checking torrents anymore
|
- BUGFIX: Do not save fastresume data for checking torrents anymore
|
||||||
|
- BUGFIX: Saving trackers file only when necessary
|
||||||
|
|||||||
@@ -858,8 +858,6 @@ void bittorrent::saveFastResumeAndRatioData() {
|
|||||||
}
|
}
|
||||||
// Save ratio data
|
// Save ratio data
|
||||||
saveDownloadUploadForTorrent(hash);
|
saveDownloadUploadForTorrent(hash);
|
||||||
// Save trackers
|
|
||||||
saveTrackerFile(hash);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
qDebug("Fast resume and ratio data saved");
|
qDebug("Fast resume and ratio data saved");
|
||||||
@@ -1005,6 +1003,7 @@ bool bittorrent::loadTrackerFile(QString hash) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void bittorrent::saveTrackerFile(QString hash) {
|
void bittorrent::saveTrackerFile(QString hash) {
|
||||||
|
qDebug("Saving tracker file for %s", hash.toUtf8().data());
|
||||||
QDir torrentBackup(misc::qBittorrentPath() + "BT_backup");
|
QDir torrentBackup(misc::qBittorrentPath() + "BT_backup");
|
||||||
QFile tracker_file(torrentBackup.path()+QDir::separator()+ hash + ".trackers");
|
QFile tracker_file(torrentBackup.path()+QDir::separator()+ hash + ".trackers");
|
||||||
if(tracker_file.exists()) {
|
if(tracker_file.exists()) {
|
||||||
|
|||||||
@@ -489,6 +489,7 @@ void properties::askForTracker(){
|
|||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
// Reload Trackers
|
// Reload Trackers
|
||||||
loadTrackers();
|
loadTrackers();
|
||||||
|
emit trackersChanged(h.hash());
|
||||||
}
|
}
|
||||||
|
|
||||||
void properties::deleteSelectedUrlSeeds(){
|
void properties::deleteSelectedUrlSeeds(){
|
||||||
@@ -537,6 +538,7 @@ void properties::deleteSelectedTrackers(){
|
|||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
// Reload Trackers
|
// Reload Trackers
|
||||||
loadTrackers();
|
loadTrackers();
|
||||||
|
emit trackersChanged(h.hash());
|
||||||
}
|
}
|
||||||
|
|
||||||
void properties::riseSelectedTracker(){
|
void properties::riseSelectedTracker(){
|
||||||
@@ -570,6 +572,7 @@ void properties::riseSelectedTracker(){
|
|||||||
// Reload Trackers
|
// Reload Trackers
|
||||||
loadTrackers();
|
loadTrackers();
|
||||||
trackersURLS->item(i-1)->setSelected(true);
|
trackersURLS->item(i-1)->setSelected(true);
|
||||||
|
emit trackersChanged(h.hash());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -604,6 +607,7 @@ void properties::lowerSelectedTracker(){
|
|||||||
// Reload Trackers
|
// Reload Trackers
|
||||||
loadTrackers();
|
loadTrackers();
|
||||||
trackersURLS->item(i+1)->setSelected(true);
|
trackersURLS->item(i+1)->setSelected(true);
|
||||||
|
emit trackersChanged(h.hash());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class properties : public QDialog, private Ui::properties{
|
|||||||
signals:
|
signals:
|
||||||
void filteredFilesChanged(QString hash);
|
void filteredFilesChanged(QString hash);
|
||||||
void fileSizeChanged(QString hash);
|
void fileSizeChanged(QString hash);
|
||||||
|
void trackersChanged(QString hash);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructor
|
// Constructor
|
||||||
|
|||||||
Reference in New Issue
Block a user