From 91a79f78cc8abe8755a4686c9874d7b03a7be590 Mon Sep 17 00:00:00 2001 From: njohnson Date: Mon, 15 Sep 2025 18:52:21 -0400 Subject: [PATCH] Refactor: Improve file handling for opening files. --- XPlor.pro | 8 ++++---- app/mainwindow.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/XPlor.pro b/XPlor.pro index b766310..c8309ef 100644 --- a/XPlor.pro +++ b/XPlor.pro @@ -2,9 +2,9 @@ TEMPLATE = subdirs SUBDIRS += libs \ app \ - tools \ - tests + #tools \ + #tests -tests.depends = libs +#tests.depends = libs app.depends = libs -tools.depends = libs +#tools.depends = libs diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index bd111b8..c177e21 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -533,7 +533,7 @@ bool MainWindow::OpenFastFile(const QString aFastFilePath) { return false; } - FastFile* fastFile = FastFileFactory::Create(aFastFilePath); + FastFile* fastFile = FastFile::Open(aFastFilePath); fastFile->SetStem(fastFileStem); mTreeWidget->AddFastFile(fastFile); @@ -548,7 +548,7 @@ bool MainWindow::OpenFastFile(const QByteArray& aFastFileData, const QString aFa return false; } - FastFile* fastFile = FastFileFactory::Create(aFastFileData); + FastFile* fastFile = FastFile::Open(aFastFileData); fastFile->SetStem(fastFileStem); mTreeWidget->AddFastFile(fastFile);