Only set the state flag after having merged with the other states


Pick-to: 6.0 6.0.0 5.15
Change-Id: Ic7a0a2cccb2b131eec7fca3cf7324109b4d22b6b
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit6df7098d89cf4a2eec35fe1362d354c91eb7a4ef
parent934c9f92926709854b6d493a335054913a45f87b
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeThu, 26 Nov 2020 23:06:41 +0100