mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Brand new torrent addition dialog
This commit is contained in:
parent
53f55a79b3
commit
c502edf9e1
18 changed files with 970 additions and 1477 deletions
|
@ -680,8 +680,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
|
||||
save_path_dir = misc::branchPath(save_path_dir, &new_file_name); // Skip file name
|
||||
}
|
||||
QDir savePath(misc::expandPath(save_path_dir));
|
||||
// Actually move storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue