- Remove old folders after renaming

This commit is contained in:
Christophe Dumez
2009-12-19 16:53:27 +00:00
parent 28ecb2fe1d
commit 7d66c07cef
3 changed files with 181 additions and 159 deletions

View File

@@ -492,7 +492,8 @@ public:
return;
}
// Create parent folder
TreeItem *current_parent = new TreeItem(misc::toQString(t.name()), parent);
QString root_name = misc::toQString(t.file_at(0).path.string()).split('/').first();
TreeItem *current_parent = new TreeItem(root_name, parent);
//parent->appendChild(current_parent);
TreeItem *root_folder = current_parent;