fixup! shared: FileSaver: addFile(): Consider fillExistingContentless

This commit is contained in:
Albert S. 2023-04-02 18:38:07 +02:00
parent ed4228326e
commit d8a205fbe5
1 changed files with 1 additions and 4 deletions

View File

@ -146,10 +146,7 @@ SaveFileResult FileSaver::saveFile(const QFileInfo &fileInfo)
if(mustFillContent)
{
auto filetype = this->dbService->queryFileType(fileInfo.absolutePath());
if(filetype)
{
mustFillContent = filetype.value() == 'c';
}
mustFillContent = !filetype.has_value() || filetype.value() == 'c';
}
}