0029018: Documentation - Provide user guide for Qt browser
[occt.git] / tools / DFBrowser / DFBrowser_SearchView.cxx
index c0416aa..54d694d 100644 (file)
@@ -82,10 +82,11 @@ void DFBrowser_SearchView::InitModels()
 // function : onTableSelectionChanged
 // purpose :
 // =======================================================================
-void DFBrowser_SearchView::onTableSelectionChanged (const QItemSelection& theSelected,
+void DFBrowser_SearchView::onTableSelectionChanged (const QItemSelection&,
                                                    const QItemSelection&)
 {
-  QModelIndexList aSelectedIndices = theSelected.indexes();
+  QItemSelectionModel* aSelectionModel = myTableView->selectionModel();
+  QModelIndexList aSelectedIndices = aSelectionModel->selectedIndexes();
   QModelIndex aSelectedIndex = DFBrowser_Window::SingleSelected (aSelectedIndices, 2);
   if (!aSelectedIndex.isValid())
     return;