From 16ae036e759e5177cf9d69dbf101cde2828ee432 Mon Sep 17 00:00:00 2001
From: Zack Rusin <zack@kde.org>
Date: Mon, 11 Apr 2011 21:30:04 -0400
Subject: [PATCH] Respect the double buffered option when looking up the state.

---
 gui/retracer.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gui/retracer.cpp b/gui/retracer.cpp
index 8f35087..f28f479 100644
--- a/gui/retracer.cpp
+++ b/gui/retracer.cpp
@@ -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;
-- 
2.45.2