diff options
Diffstat (limited to 'gui/traceloader.cpp')
-rw-r--r-- | gui/traceloader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/traceloader.cpp b/gui/traceloader.cpp index e6e37e6c..bc2af425 100644 --- a/gui/traceloader.cpp +++ b/gui/traceloader.cpp @@ -55,6 +55,15 @@ void TraceLoader::loadTrace(const QString &filename) return; } + if (!m_parser.supportsOffsets()) { + emit parseProblem( + "This trace in compressed in a format that does not allow random seeking.\n" + "Please repack the trace with `apitrace repack`." + ); + m_parser.close(); + return; + } + emit startedParsing(); if (m_parser.supportsOffsets()) { |