QmlProfiler: be more resilient against missing models in render passes

Change-Id: Ib5c0ec44bac213f544dfce533299bee03213b374
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-12-10 14:11:09 +01:00
parent 4b5d38c8cc
commit 8f7bd19600
4 changed files with 15 additions and 11 deletions

View File

@@ -109,6 +109,9 @@ TimelineRenderPass::State *TimelineNotesRenderPass::update(const TimelineAbstrac
const TimelineNotesModel *notes = renderer->notes();
const TimelineModel *model = renderer->model();
if (!model || !notes)
return oldState;
TimelineNotesRenderPassState *state;
if (oldState == 0) {
state = new TimelineNotesRenderPassState(model->expandedRowCount());