]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.cpp
Show important retrace messages long enough to read.
[apitrace] / gui / retracer.cpp
index d0e07ef9f4d54066e56042ed8df7ae16fd036427..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
@@ -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);
+            }
         }
     }