]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.cpp
Show important retrace messages long enough to read.
[apitrace] / gui / retracer.cpp
index aeac9ba0f2fd61ebd1497e7890d5c014f43623d7..84f974244943b45a551fd561a1f01ce8d8e108ac 100644 (file)
@@ -220,7 +220,7 @@ void Retracer::setCaptureThumbnails(bool enable)
  */
 void Retracer::run()
 {
-    QString msg;
+    QString msg = QLatin1String("Replay finished!");
 
     /*
      * Construct command line
@@ -234,7 +234,7 @@ void Retracer::run()
     } else if (m_api == trace::API_EGL) {
         prog = QLatin1String("eglretrace");
     } else {
-        Q_ASSERT(0);
+        emit finished(QLatin1String("Unsupported API"));
         return;
     }
 
@@ -349,7 +349,9 @@ void Retracer::run()
         } else {
             QByteArray output;
             output = process.readAllStandardOutput();
-            msg = QString::fromUtf8(output);
+            if (output.length() < 80) {
+                msg = QString::fromUtf8(output);
+            }
         }
     }