Skip to content
Snippets Groups Projects
Commit 6718e146 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[i427c] GUI: fix for MR 1305 ()

Merging branch 'i427c'  into 'main'.

See merge request !1311
parents 252c0f71 1004b7f2
No related branches found
No related tags found
1 merge request!1311GUI: fix for MR 1305
Pipeline #87146 passed
......@@ -219,8 +219,10 @@ void SampleListView::restoreSelection()
selected = m_model->rowCount() - 1;
QModelIndex selectedIndex = m_model->index(selected, 0, QModelIndex());
selectionModel()->select(selectedIndex, QItemSelectionModel::ClearAndSelect);
setCurrentSample(m_document->sampleModel()->sampleItems()[selected]);
if (selectedIndex.isValid()) {
selectionModel()->select(selectedIndex, QItemSelectionModel::ClearAndSelect);
setCurrentSample(m_document->sampleModel()->sampleItems()[selected]);
}
}
void SampleListView::removeSample(SampleItem* item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment