From: José Fonseca Date: Thu, 1 Sep 2011 18:17:41 +0000 (+0100) Subject: Ensure that calls for traces with a single frame are shown. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=f0a7c0206361cb8fb0e387839a82762a799a9f01;p=apitrace Ensure that calls for traces with a single frame are shown. Otherwise we get a solitary "Frame 0" node without children. --- diff --git a/gui/loaderthread.cpp b/gui/loaderthread.cpp index f311fe0..03f0ccd 100644 --- a/gui/loaderthread.cpp +++ b/gui/loaderthread.cpp @@ -95,6 +95,10 @@ void LoaderThread::run() // it's just a bunch of Delete calls for every object // after the last SwapBuffers if (currentFrame) { + if (!frames.count()) { + calls.squeeze(); + currentFrame->setCalls(calls, binaryDataSize); + } frames.append(currentFrame); currentFrame = 0; }