AppFwk: Fix index out of bounds error

This commit is contained in:
Bjørn Erik Jensen 2017-09-11 12:46:29 +02:00
parent 337ad4d356
commit f1948c9ce6

View File

@ -128,6 +128,9 @@ QModelIndex caf::PdmUiTreeSelectionQModel::index(int row, int column, const QMod
if (!hasIndex(row, column, parent))
return QModelIndex();
if (m_zeroLevelRowToOptionIndex.size() == 0)
return QModelIndex();
int opIndex = -1;
if (parent.isValid())
{