Commit 6b90a8f3 authored by Craig Watson's avatar Craig Watson

Fix for trashed items being set as current document

When deleting a document that was in the trash, the following item was
selected but also set as current document. This is now fixed.
parent 3a3a9369
......@@ -809,7 +809,7 @@ void UBDocumentController::deleteTreeItem(QTreeWidgetItem * item, bool showConfi
if (mTrashTi->childCount()==0)
selectDocument(NULL);
else
selectDocument(((UBDocumentProxyTreeItem*)mTrashTi->child(0))->proxy());
selectDocument(((UBDocumentProxyTreeItem*)mTrashTi->child(0))->proxy(), false);
}
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