mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk: Fix index out of bounds error
This commit is contained in:
parent
337ad4d356
commit
f1948c9ce6
@ -128,6 +128,9 @@ QModelIndex caf::PdmUiTreeSelectionQModel::index(int row, int column, const QMod
|
|||||||
if (!hasIndex(row, column, parent))
|
if (!hasIndex(row, column, parent))
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
|
|
||||||
|
if (m_zeroLevelRowToOptionIndex.size() == 0)
|
||||||
|
return QModelIndex();
|
||||||
|
|
||||||
int opIndex = -1;
|
int opIndex = -1;
|
||||||
if (parent.isValid())
|
if (parent.isValid())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user