Commit 1dadb212 authored by Clément Fauconnier's avatar Clément Fauconnier

just need to delete documents, as these methods are only used when closing...

just need to delete documents, as these methods are only used when closing OpenBoard. Fix bad indexes issues
parent f6152d2e
......@@ -2644,7 +2644,7 @@ void UBDocumentController::deleteDocumentsInFolderOlderThan(const QModelIndex &i
{
if (documentProxy->lastUpdate() < QDateTime::currentDateTime().addDays(-days))
{
deleteIndexAndAssociatedData(child);
UBPersistenceManager::persistenceManager()->deleteDocument(documentProxy);
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment