Fix MapItemView attempting to instantiate items with map not set
This case was not a problem when the only incubation mode was
Asynchronous, because the test for m_map was done in createdItem.
Now that Synchronous is supported too, this check has to be done earlier
or else instantiated items will never be added to the map.
Change-Id: Ifaa033fb0b64cabe74df395fcb387d162cd02b80
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
| commit | 1688c44d223145abfdca19a7b31faecbafb0d315 |
| parent | b1fe421e9a64d57a6135a95453caf847ab6e6e78 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Mon, 7 Jan 2019 11:25:20 +0000 |