mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
AppFwk: Fix index out of bounds error
This commit is contained in:
1 parent
337ad4d356
commit
f1948c9ce6
1 file changed
+3
@@ -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())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user