diff options
author | Ulf Hermann <[email protected]> | 2018-05-07 13:26:05 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2018-05-08 16:26:55 +0000 |
commit | 916883e70f121ded7fedf54c0d8732f828542895 (patch) | |
tree | a6af25d70d782967092c9cd680f4e3bd6318615d /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | e6d583913e95888f337d698757ed9f7d48a0cb55 (diff) |
Tracing: Move event storage out of trace manager
This is a step toward making the trace manager non-virtual. It should
just juggle the storages for types and events, and manage the threads to
access them. It doesn't need to know what exactly it stores.
Change-Id: I45093c60d8ae921e68aeb09bd48d24d5877ce306
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index 81e1168f25d..867b95273bb 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -112,8 +112,10 @@ void QmlProfilerStatisticsModel::restrictToFeatures(quint64 features) notesChanged(QmlProfilerStatisticsModel::s_invalidTypeId); // Reload notes }, [this](const QString &message) { endResetModel(); - emit m_modelManager->error(tr("Could not re-read events from temporary trace file: %1") - .arg(message)); + if (!message.isEmpty()) { + emit m_modelManager->error(tr("Could not re-read events from temporary trace file: %1") + .arg(message)); + } clear(); }, future); } |