projectmanagers: set title automatically and pass cancelled signal to sub functions

This commit is contained in:
itsmattkc
2020-02-17 02:13:49 +11:00
parent e88d11af68
commit 705b7f3d86
3 changed files with 14 additions and 6 deletions
+3 -1
View File
@@ -16,6 +16,8 @@ ProjectImportManager::ProjectImportManager(ProjectViewModel *model, Folder *fold
}
file_count_ = Core::CountFilesInFileList(filenames_);
SetTitle(tr("Importing %1 files").arg(file_count_));
}
const int &ProjectImportManager::GetFileCount()
@@ -91,7 +93,7 @@ void ProjectImportManager::Import(Folder *folder, const QFileInfoList &import, i
// FIXME: Perhaps re-think this approach at some point
f->set_project(model_->project());
Decoder::ProbeMedia(f.get());
Decoder::ProbeMedia(f.get(), &IsCancelled());
f->set_project(nullptr);