just need to delete documents, as these methods are only used when closing OpenBoard. Fix bad indexes issues

preferencesAboutTextFull
Clément Fauconnier 5 years ago
parent f6152d2e5c
commit 1dadb21212
  1. 2
      src/document/UBDocumentController.cpp

@ -2644,7 +2644,7 @@ void UBDocumentController::deleteDocumentsInFolderOlderThan(const QModelIndex &i
{
if (documentProxy->lastUpdate() < QDateTime::currentDateTime().addDays(-days))
{
deleteIndexAndAssociatedData(child);
UBPersistenceManager::persistenceManager()->deleteDocument(documentProxy);
}
}
else

Loading…
Cancel
Save