+ add clean-up function to recovery dialog

This commit is contained in:
wmayer
2016-03-21 17:56:18 +01:00
parent a1082796b9
commit dcb5d09581
4 changed files with 150 additions and 7 deletions

View File

@@ -1837,7 +1837,7 @@ void Application::checkForPreviousCrashes()
tmp.setFilter(QDir::Dirs);
QList<QFileInfo> dirs = tmp.entryInfoList();
if (dirs.isEmpty()) {
// delete the lock file immediately if not transient directories are related
// delete the lock file immediately if no transient directories are related
tmp.remove(fn);
}
else {
@@ -1852,7 +1852,7 @@ void Application::checkForPreviousCrashes()
if (tmp.rmdir(it->filePath()))
countDeletedDocs++;
}
// search for the existance of a recovery file
// search for the existence of a recovery file
else if (doc_dir.exists(QLatin1String("fc_recovery_file.xml"))) {
// store the transient directory in case it's not empty
restoreDocFiles << *it;