Render bug (#173)
* Make viewer transparency respond faster and add to combo viewer * Fix one cause of render crashes
This commit is contained in:
parent
1e645cf022
commit
9d1557c868
1 changed files with 6 additions and 2 deletions
|
@ -390,9 +390,13 @@ void TSystem::renameFile(const TFilePath &dst, const TFilePath &src,
|
|||
|
||||
// gestire gli errori con GetLastError?
|
||||
void TSystem::deleteFile(const TFilePath &fp) {
|
||||
if (!QFile::remove(toQString(fp)))
|
||||
if (TSystem::doesExistFileOrLevel(fp)) {
|
||||
if (fp.getQString().contains("cache")) {
|
||||
QFile::remove(toQString(fp));
|
||||
} else if (!QFile::remove(toQString(fp)))
|
||||
throw TSystemException(fp, "can't delete file!");
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue