Commit 0eb1301b authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Don't lie about the debug messages model's row count

The previous code would crash in the renderer if the type id is smaller
than the detail type of the message. That is rare, but can happen.

Change-Id: I7702284bc61a7c9227c7ad81ecf714255db5db9f
Reviewed-by: Michael Winkelmann's avatarMichael Winkelmann <>
Reviewed-by: Kai Koehne's avatarKai Koehne <>
parent 181a17bb
......@@ -99,7 +99,7 @@ void DebugMessagesModel::loadEvent(const QmlEvent &event, const QmlEventType &ty
m_data.insert(insert(event.timestamp(), 0, type.detailType()),
MessageData(event.string(), event.typeIndex()));
if (type.detailType() > m_maximumMsgType)
m_maximumMsgType = event.typeIndex();
m_maximumMsgType = type.detailType();
void DebugMessagesModel::finalize()
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