mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Fix issues with single file torrents
This commit is contained in:
parent
13927599c8
commit
f8134b1a62
1 changed files with 2 additions and 2 deletions
|
@ -531,12 +531,12 @@ void torrentAdditionDialog::renameSelectedFile() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// Check if there is at least one selected file
|
// Check if there is at least one selected file
|
||||||
if(!is_magnet && allFiltered()){
|
if(!is_magnet && t->num_files() > 1 && 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"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// save filtered files
|
// save filtered files
|
||||||
if(!is_magnet)
|
if(!is_magnet && t->num_files() > 1)
|
||||||
savePiecesPriorities();
|
savePiecesPriorities();
|
||||||
// Add to download list
|
// Add to download list
|
||||||
QTorrentHandle h;
|
QTorrentHandle h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue