]> git.cworth.org Git - apitrace/commitdiff
Respect the double buffered option when looking up the state.
authorZack Rusin <zack@kde.org>
Tue, 12 Apr 2011 01:30:04 +0000 (21:30 -0400)
committerZack Rusin <zack@kde.org>
Tue, 12 Apr 2011 01:30:04 +0000 (21:30 -0400)
gui/retracer.cpp

index 8f3508770457b6ac36fcaf6ff31de4d393904703..f28f479b9e3a4b0af9db4d6a9665f51fd8661dbf 100644 (file)
@@ -117,6 +117,11 @@ void Retracer::run()
 void RetraceProcess::start()
 {
     QStringList arguments;
+
+    if (m_doubleBuffered) {
+        arguments << QLatin1String("-db");
+    }
+
     if (m_captureState) {
         arguments << QLatin1String("-D");
         arguments << QString::number(m_captureCall);
@@ -124,9 +129,6 @@ void RetraceProcess::start()
         if (m_benchmarking) {
             arguments << QLatin1String("-b");
         }
-        if (m_doubleBuffered) {
-            arguments << QLatin1String("-db");
-        }
     }
 
     arguments << m_fileName;