Refactor: Improve file handling for opening files.
This commit is contained in:
parent
8d5e5812ec
commit
91a79f78cc
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user