Skip to content

Commit

Permalink
QmlProfiler: Don't connect() null pointers
Browse files Browse the repository at this point in the history
Change-Id: I0373e19a6d362f115e578420487a90875488837c
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
Ulf Hermann committed Jul 5, 2016
1 parent 6683597 commit 71e3833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void QmlProfilerDetailsRewriter::requestDetailsForLocation(int requestId,
PendingEvent ev = {location, localFile, requestId};
d->m_pendingEvents << ev;
if (!d->m_pendingDocs.contains(localFile)) {
if (d->m_pendingDocs.isEmpty())
if (d->m_pendingDocs.isEmpty() && QmlJS::ModelManagerInterface::instance())
connect(QmlJS::ModelManagerInterface::instance(),
&QmlJS::ModelManagerInterface::documentUpdated,
this,
Expand Down

0 comments on commit 71e3833

Please sign in to comment.