QAbstractItemModel::endInsertRows() invalid index warning.
Mantis Issue 1067, reported by salbert, assigned to smay, created: 2015-09-11
Qt warnings are caught and traced when inserting a single image or when inserting the first of several images on top of layer-stack.
WARNG> QAbstractItemModel::endInsertRows: Invalid index ( 5 , 10 ) in model mvd::LayerStackItemModel(0x2450f40) WARNG> QAbstractItemModel::endInsertRows: Invalid index ( 5 , 0 ) in model mvd::LayerStackItemModel(0x2450f40)
Steps To Reproduce:
- Run mv2 with some images given on the command-line.
- Open:
a. a single image; or
b. a list of images.
Remark: only the first time 2a or 2b is done. If re-doing, no warning.
Additional Information: Seems to be caused by ordering of signals emitted from StackedLayerModel and management of slots/row-insertion/data in LayerStackItemModel.
Edited by Sébastien Dinot