mirror of https://github.com/CGAL/cgal
Fixes the multi-selection for real.
This commit is contained in:
parent
7f29c83c3a
commit
848fc89f81
|
|
@ -1069,7 +1069,7 @@ void MainWindow::selectSceneItem(int i)
|
|||
proxyModel->mapSelectionFromSource(scene->createSelection(i));
|
||||
|
||||
sceneView->selectionModel()->select(s,
|
||||
QItemSelectionModel::Select);
|
||||
QItemSelectionModel::ClearAndSelect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,9 +184,8 @@ public Q_SLOTS:
|
|||
void setSelectedItemIndex(int i)
|
||||
{
|
||||
selected_item = i;
|
||||
Q_EMIT selectionChanged(i);
|
||||
}
|
||||
//! Same as setSelectedItemIndex.
|
||||
//! Clears the current selection then sets the selected item to the target index.
|
||||
void setSelectedItem(int i )
|
||||
{
|
||||
selected_item = i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue