Fix to SANKORE-640 (Document explorer(navigator):Folders can not be selected)

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent 50aea07ab6
commit 19a3a78ed2
  1. 3
      src/document/UBDocumentController.cpp

@ -122,6 +122,9 @@ UBDocumentProxyTreeItem* UBDocumentController::findDocument(UBDocumentProxy* pro
void UBDocumentController::selectDocument(UBDocumentProxy* proxy, bool setAsCurrentDocument) void UBDocumentController::selectDocument(UBDocumentProxy* proxy, bool setAsCurrentDocument)
{ {
if (!proxy)
return;
QTreeWidgetItemIterator it(mDocumentUI->documentTreeWidget); QTreeWidgetItemIterator it(mDocumentUI->documentTreeWidget);
mDocumentUI->documentTreeWidget->clearSelection(); mDocumentUI->documentTreeWidget->clearSelection();

Loading…
Cancel
Save