Commit c472241a authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Don't connect() null pointers

Change-Id: Id97a5f2231608ae14d7122f168808b2e0264815b
Reviewed-by: Joerg Bornemann's avatarJoerg Bornemann <joerg.bornemann@qt.io>
parent b034481c
......@@ -58,7 +58,8 @@ void FlameGraph::setModel(QAbstractItemModel *model)
disconnect(m_model, &QAbstractItemModel::modelReset, this, &FlameGraph::rebuild);
m_model = model;
connect(m_model, &QAbstractItemModel::modelReset, this, &FlameGraph::rebuild);
if (m_model)
connect(m_model, &QAbstractItemModel::modelReset, this, &FlameGraph::rebuild);
emit modelChanged(model);
rebuild();
}
......
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