Commit 67d3a34b authored by Craig Watson's avatar Craig Watson

Document mode: Don't automatically select a new document when deleting one

parent 09ab3e19
...@@ -805,10 +805,12 @@ void UBDocumentController::deleteTreeItem(QTreeWidgetItem * item, bool showConfi ...@@ -805,10 +805,12 @@ void UBDocumentController::deleteTreeItem(QTreeWidgetItem * item, bool showConfi
document->parent()->removeChild(document); document->parent()->removeChild(document);
UBPersistenceManager::persistenceManager()->deleteDocument(document->proxy()); UBPersistenceManager::persistenceManager()->deleteDocument(document->proxy());
if (selectNewDocument) {
if (mTrashTi->childCount()==0) if (mTrashTi->childCount()==0)
selectDocument(NULL); selectDocument(NULL);
else else
selectDocument(((UBDocumentProxyTreeItem*)mTrashTi->child(0))->proxy()); selectDocument(((UBDocumentProxyTreeItem*)mTrashTi->child(0))->proxy());
}
reloadThumbnails(); reloadThumbnails();
} }
......
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