Changing entryStandardItemModel.item(x) to .item(x, 0). Not actually sure if this does something but just to make sure it always gets idx 0.
Entry list: Make sure a section that was hidden and is set to visible actually has a non-0 width.