Fix for documents not being deleted when dragged to trash

When drag-n-dropping a document to the trash, it would reappear in the
"untitled documents" folder on the next restart. (This was introduced by
bd3d8e95)
preferencesAboutTextFull
Craig Watson 8 years ago
parent 8d9fc7b071
commit c569040cc6
  1. 4
      src/gui/UBDocumentTreeWidget.cpp

@ -375,8 +375,10 @@ bool UBDocumentTreeWidget::moveDocument(UBDocumentProxyTreeItem* document, UBDoc
QString destinationFolderName;
if (destinationFolder->isTrashFolder())
if (destinationFolder->isTrashFolder()) {
UBApplication::app()->documentController->moveDocumentToTrash(sourceFolder, document, true);
destinationFolderName = document->proxy()->metaData(UBSettings::documentGroupName).toString();
}
else {
if (destinationFolder->groupName() == UBApplication::app()->documentController->defaultDocumentGroupName())

Loading…
Cancel
Save