mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
BUGFIX: Fix renaming of single-file torrents (by Vladimir Golovnev)
This commit is contained in:
parent
6580d23263
commit
721fa821f7
3 changed files with 3 additions and 1 deletions
|
@ -714,6 +714,7 @@ void PropertiesWidget::on_changeSavePathButton_clicked() {
|
|||
QString save_path_dir = new_path.replace("\\", "/");
|
||||
QString new_file_name;
|
||||
if(h.has_metadata() && h.num_files() == 1) {
|
||||
new_file_name = misc::fileName(save_path_dir); // New file name
|
||||
save_path_dir = misc::branchPath(save_path_dir, true); // Skip file name
|
||||
}
|
||||
QDir savePath(misc::expandPath(save_path_dir));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue