fixup! shared: FileSaver: addFile(): Consider fillExistingContentless
This commit is contained in:
والد
ed4228326e
کامیت
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';
|
||||
}
|
||||
}
|
||||
|
||||
|
بارگذاری…
مرجع در شماره جدید
Block a user