]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.cpp
Always use bundled QJson.
[apitrace] / gui / retracer.cpp
index 87d9f37dee89b655fa1c95ce0a0512a515457a38..6d743f70e72d04aab4cb7e181603e5597ea52f96 100644 (file)
@@ -353,6 +353,9 @@ void Retracer::run()
 
             bool ok = false;
             QJson::Parser jsonParser;
+
+            // Allow Nan/Infinity
+            jsonParser.allowSpecialNumbers(true);
 #if 0
             parsedJson = jsonParser.parse(&io, &ok).toMap();
 #else
@@ -417,7 +420,6 @@ void Retracer::run()
             Q_ASSERT(process.state() != QProcess::Running);
         } else if (isProfiling()) {
             profile = new trace::Profile();
-            process.waitForFinished(-1);
 
             while (!io.atEnd()) {
                 char line[256];