fixup! shared: FileSaver: addFile(): Consider fillExistingContentless
This commit is contained in:
parent
ed4228326e
commit
d8a205fbe5
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user