don't try to delete the trashIndex itself

preferencesAboutTextFull
Clément Fauconnier 5 years ago
parent 6fb5b5bc8d
commit f6152d2e5c
  1. 3
      src/core/UBApplication.cpp

@ -455,7 +455,8 @@ void UBApplication::closing()
{
UBDocumentTreeModel *docModel = UBPersistenceManager::persistenceManager()->mDocumentTreeStructureModel;
documentController->deleteDocumentsInFolderOlderThan(docModel->trashIndex(), UBSettings::settings()->emptyTrashDaysValue->get().toInt());
documentController->deleteEmptyFolders(docModel->trashIndex());
if (docModel->hasChildren(docModel->trashIndex()))
documentController->deleteEmptyFolders(docModel->trashIndex());
}
if (boardController)

Loading…
Cancel
Save