work save

This commit is contained in:
royqh1979 2021-09-04 21:21:45 +08:00
parent 9244370ea4
commit 73d578b7e4
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ bool FileCompiler::prepareForCompile()
mOutputFile = getCompiledExecutableName(mFilename);
mArguments+=QString(" -o \"%1\"").arg(mOutputFile);
//remove the old file it exists
//remove the old file if it exists
QFile outputFile(mOutputFile);
if (outputFile.exists()) {
if (!outputFile.remove()) {