mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Code clean up
This commit is contained in:
parent
5696944c6f
commit
64f4775a81
10 changed files with 19 additions and 26 deletions
|
@ -711,9 +711,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) {
|
||||
QStringList parts = save_path_dir.split("/");
|
||||
new_file_name = parts.takeLast(); // Skip file name
|
||||
save_path_dir = parts.join("/");
|
||||
save_path_dir = misc::branchPath(save_path_dir, true); // Skip file name
|
||||
}
|
||||
QDir savePath(misc::expandPath(save_path_dir));
|
||||
// Actually move storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue