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.
preferencesAboutTextFull
Craig Watson 8 years ago
parent 3a3a936916
commit 6b90a8f333
  1. 2
      src/document/UBDocumentController.cpp

@ -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();

Loading…
Cancel
Save