fixed qt assert when importing files
This commit is contained in:
@@ -115,14 +115,14 @@ void ProjectImportTask::Import(Folder *folder, QFileInfoList import, int &counte
|
||||
footage->SetLabel(file_info.fileName());
|
||||
|
||||
if (footage->IsValid()) {
|
||||
// Move footage to main thread
|
||||
footage->moveToThread(folder->thread());
|
||||
|
||||
// See if this footage is an image sequence
|
||||
ValidateImageSequence(footage, import, i);
|
||||
|
||||
// Create undoable command that adds the items to the model
|
||||
parent_command->add_child(new NodeAddCommand(folder->parent(), footage));
|
||||
NodeAddCommand* nac = new NodeAddCommand(folder->parent(), footage);
|
||||
nac->PushToThread(folder->thread());
|
||||
parent_command->add_child(nac);
|
||||
|
||||
parent_command->add_child(new FolderAddChild(folder, footage));
|
||||
} else {
|
||||
// Add to list so we can tell the user about it later
|
||||
|
||||
Reference in New Issue
Block a user