Fixes the multi-selection for real.

This commit is contained in:
Maxime Gimeno 2016-05-18 15:13:44 +02:00
parent 7f29c83c3a
commit 848fc89f81
2 changed files with 2 additions and 3 deletions

View File

@ -1069,7 +1069,7 @@ void MainWindow::selectSceneItem(int i)
proxyModel->mapSelectionFromSource(scene->createSelection(i));
sceneView->selectionModel()->select(s,
QItemSelectionModel::Select);
QItemSelectionModel::ClearAndSelect);
}
}

View File

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