This commit is contained in:
parent
19e3b06991
commit
5edf4c8532
|
@ -2459,8 +2459,9 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
|||
}
|
||||
}
|
||||
|
||||
QDir dir = QDir(Dialog_ClrCache::getCachePath());
|
||||
if (dir.exists())
|
||||
QString cachePath = Dialog_ClrCache::getCachePath();
|
||||
QDir dir = QDir(cachePath);
|
||||
if (dir.exists() && (cachePath.endsWith("Cache/") || cachePath.endsWith("Cache\\")));
|
||||
dir.removeRecursively();
|
||||
|
||||
m_versionDll->PostUserCloseInfo(HGVERSION_APPNAME_SCANNER);
|
||||
|
|
Loading…
Reference in New Issue