Add tool used to extract project file revisions from project file database

* Add tool used to extract project file versions from database
* Delete old records from backup to limit number of records to 50
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2024-05-04 13:21:31 +02:00
1 parent a55b53c725
commit 96481d81a8
7 files changed
+279 -5

No files matched your search

@@ -416,8 +416,9 @@ bool RimProject::writeProjectFile()
if ( RiaPreferences::current()->storeBackupOfProjectFiles() )
{
QString backupFilename = fileName + "db";
RiaProjectBackupTools::appendTextToDatabase( backupFilename, content );
QString backupFilename = fileName + "db";
const int maximumRecordCount = 50;
RiaProjectBackupTools::appendTextToDatabase( backupFilename, maximumRecordCount, content );
}
distributePathsFromGlobalPathList();