Ref T348, file handling in aircraft model (renaming)

Related: Ref T317 Ref T247 Ref T335
This commit is contained in:
Klaus Basan
2018-09-13 02:01:40 +02:00
parent da2a7f6506
commit c11a38dbde
3 changed files with 8 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ namespace BlackMisc
const ModelType t = this->getModelType();
if (t == TypeOwnSimulatorModel || t == TypeManuallySet || t == TypeDatabaseEntry)
{
if (!this->existsCorrespondingFile())
if (!this->hasExistingCorrespondingFile())
{
const CStatusMessage m = CStatusMessage(this).validationError("File '%1' not readable") << this->getFileName();
msgs.push_back(m);
@@ -631,7 +631,7 @@ namespace BlackMisc
return true;
}
bool CAircraftModel::existsCorrespondingFile() const
bool CAircraftModel::hasExistingCorrespondingFile() const
{
if (!this->hasFileName()) { return false; }
const QFileInfo fi(this->getFileName());