Refactor: Improve file handling for opening files.

This commit is contained in:
njohnson 2025-09-15 18:52:21 -04:00
parent 8d5e5812ec
commit 91a79f78cc
2 changed files with 6 additions and 6 deletions

View File

@ -2,9 +2,9 @@ TEMPLATE = subdirs
SUBDIRS += libs \ SUBDIRS += libs \
app \ app \
tools \ #tools \
tests #tests
tests.depends = libs #tests.depends = libs
app.depends = libs app.depends = libs
tools.depends = libs #tools.depends = libs

View File

@ -533,7 +533,7 @@ bool MainWindow::OpenFastFile(const QString aFastFilePath) {
return false; return false;
} }
FastFile* fastFile = FastFileFactory::Create(aFastFilePath); FastFile* fastFile = FastFile::Open(aFastFilePath);
fastFile->SetStem(fastFileStem); fastFile->SetStem(fastFileStem);
mTreeWidget->AddFastFile(fastFile); mTreeWidget->AddFastFile(fastFile);
@ -548,7 +548,7 @@ bool MainWindow::OpenFastFile(const QByteArray& aFastFileData, const QString aFa
return false; return false;
} }
FastFile* fastFile = FastFileFactory::Create(aFastFileData); FastFile* fastFile = FastFile::Open(aFastFileData);
fastFile->SetStem(fastFileStem); fastFile->SetStem(fastFileStem);
mTreeWidget->AddFastFile(fastFile); mTreeWidget->AddFastFile(fastFile);