Do the same when readding items after a deletion.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-09-05 15:20:22 +02:00
parent 683efde803
commit 0ac5d7c9ee

View file

@ -610,7 +610,8 @@ void CGeorgesFormModel::deleteArrayEntry( QModelIndex idx )
else else
n = e.Name.c_str(); n = e.Name.c_str();
item->add( CFormItem::Form, n.toUtf8().constData(), i, formName.toUtf8().constData(), 0, item->form(), false ); NLGEORGES::CFormElmStruct *st = static_cast< NLGEORGES::CFormElmStruct* >( e.Element );
addStruct( item, st, st->FormDfn, n.toUtf8().constData(), i, formName.toUtf8().constData(), 0 );
} }
Q_EMIT endResetModel(); Q_EMIT endResetModel();