From 50eab48fce0f5957ca09343448e018fb2f0cbfd9 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 3 Oct 2012 11:08:39 +0200 Subject: [PATCH] qdoc: Change to debug output Only print debug output if -debug is used on the command line. Change-Id: I2bdfca1a072f728427da61f05b34e6e07d933183 Reviewed-by: Jerome Pasion --- src/tools/qdoc/generator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/qdoc/generator.cpp b/src/tools/qdoc/generator.cpp index a349bf5405..9cfdb2246b 100644 --- a/src/tools/qdoc/generator.cpp +++ b/src/tools/qdoc/generator.cpp @@ -110,7 +110,8 @@ void Generator::setDebugSegfaultFlag(bool b) */ void Generator::debugSegfault(const QString& message) { - qDebug() << "DEBUG:" << message; + if (debugging()) + qDebug() << "DEBUG:" << message; } /*!