From 7cec2f5ffd3c74978249e0eceb79ce16105853c7 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 16 Jul 2013 15:27:14 -0700 Subject: [PATCH] use fprintf instead of printf and flush for qDebug --- interface/src/Application.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index b5d59ddd9c..1bfba999b1 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -165,9 +165,7 @@ void GLCanvas::wheelEvent(QWheelEvent* event) { } void messageHandler(QtMsgType type, const char* message) { - printf("%s", message); - fflush(stdout); - + fprintf(stdout, "%s", message); LogDisplay::instance.addMessage(message); }