Commit 8f913a1a authored by Clément Fauconnier's avatar Clément Fauconnier

delete documents in trash older than x days now won't delete documents x days old

parent 9adb8e66
......@@ -2642,7 +2642,7 @@ void UBDocumentController::deleteDocumentsInFolderOlderThan(const QModelIndex &i
if (documentProxy)
{
if (documentProxy->lastUpdate() < QDateTime::currentDateTime().addDays(-days))
if (documentProxy->lastUpdate().date() < QDateTime::currentDateTime().addDays(-days).date())
{
UBPersistenceManager::persistenceManager()->deleteDocument(documentProxy);
}
......
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