Code clean up

This commit is contained in:
Christophe Dumez 2010-12-30 19:38:53 +00:00
parent 5696944c6f
commit 64f4775a81
10 changed files with 19 additions and 26 deletions

View file

@ -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