Commit 3ae24416 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: prevent crash in events pane

When selecting event before the timeline has been
rendered at least once.

Change-Id: I8f34ebacb948163f57e3c2bc893d17c745366294
Reviewed-by: default avatarKai Koehne <>
parent 354bcaa8
......@@ -350,7 +350,7 @@ QString TimelineView::getDetails(int index) const
int TimelineView::getYPosition(int index) const
if (index >= m_eventList->count())
if (index >= m_eventList->count() || m_rowStarts.isEmpty())
return 0;
int y, eventType = m_eventList->getType(index);
if (m_rowsExpanded[eventType])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment