mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Check that local files exist when "skip file checking and start seeding immediately" feature is enabled. (Thanks Stephanos Antaris to notice this bug and propose a solution)
This commit is contained in:
parent
be240f72ab
commit
ff6e9c0f9b
@ -445,7 +445,15 @@ public slots:
|
|||||||
// Create .incremental file if necessary
|
// Create .incremental file if necessary
|
||||||
TorrentTempData::setSequential(hash, checkIncrementalDL->isChecked());
|
TorrentTempData::setSequential(hash, checkIncrementalDL->isChecked());
|
||||||
// Skip file checking and directly start seeding
|
// Skip file checking and directly start seeding
|
||||||
TorrentTempData::setSeedingMode(hash, addInSeed->isChecked());
|
if(addInSeed->isChecked()) {
|
||||||
|
// Check if local file(s) actually exist
|
||||||
|
if(savePath.exists(misc::toQString(t->name()))) {
|
||||||
|
TorrentTempData::setSeedingMode(hash, true);
|
||||||
|
} else {
|
||||||
|
QMessageBox::warning(0, tr("Seeding mode error"), tr("You chose to skip file checking. However, local files do not seem to exist in the current destionation folder. Please disable this feature or update the save path."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
// Check if there is at least one selected file
|
// Check if there is at least one selected file
|
||||||
if(allFiltered()){
|
if(allFiltered()){
|
||||||
QMessageBox::warning(0, tr("Invalid file selection"), tr("You must select at least one file in the torrent"));
|
QMessageBox::warning(0, tr("Invalid file selection"), tr("You must select at least one file in the torrent"));
|
||||||
|
Loading…
Reference in New Issue
Block a user