unwanted Null Element addition to InputImageListParameter in QtWidget
Mantis Issue 774, reported by rkanavath, assigned to rkanavath, created: 2013-09-09
QtWidgetInputImageListParameter class adds a Null element to imagelist when creating widget in ::DoCreateWidget()
m_InputImageListParam->AddNullElement(); connect(fileSelection->GetInput(), SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()));
this will make have InputImageParameter::GetFileNameList() returning a non-empty list if the actual list is empty and troubles the file name index in the ImageReader. Nth Image will be placed at N+1 in QtWidget of InputImageList (QtWidgetInputImageListParameter)
1378828203 - rashadkmfixed in my bitbucket clone of otb[1]
[1] https://bitbucket.org/bugbrains/otb-rashad/commits/5b7489f46a0974d078d19cbc7c28d148e75103c4
1381328760 - rashadkmAddNullElement is needed in this case actually for the list type parameters. It is used to make the space alive so that UpdateImageList size gets increased when adding new parameter. Since its the NullElement its completely ignored.
This issue can closed.