viewport: Do not attempt to refresh an empty viewport.

Authored by lepagevalleeemmanuel on Feb 3 2019, 7:08 PM.

Description

viewport: Do not attempt to refresh an empty viewport.

This fixes a "race" condition where setting the model also causes the
viewport to be resized. This happens, for example, with a QQC2.PageStack

Details

Committed
lepagevalleeemmanuelFeb 3 2019, 7:08 PM
Parents
R1027:0719e5769841: listview: Handle a Q_ASSERT(TODO)
Branches
Unknown
Tags
Unknown