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

preferencesAboutTextFull
Craig Watson 8 years ago
parent 09ab3e19d0
commit 67d3a34b0b
  1. 2
      src/document/UBDocumentController.cpp

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

Loading…
Cancel
Save