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

RealDataSelectorWidget: handle unselected case

parent ab343151
No related branches found
No related tags found
1 merge request!1297GUI: allow data unselection
Pipeline #86603 passed
......@@ -158,6 +158,8 @@ void RealDataSelectorWidget::setCurrentItem(RealItem* item)
QModelIndex RealDataSelectorWidget::currentIndex()
{
if (!m_itemTree->selectionModel()->isSelected(m_itemTree->selectionModel()->currentIndex()))
return QModelIndex();
return m_itemTree->selectionModel()->currentIndex();
}
......
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