use fprintf instead of printf and flush for qDebug

This commit is contained in:
Stephen Birarda 2013-07-16 15:27:14 -07:00
parent 1e0f3e4d1c
commit 7cec2f5ffd

View file

@ -165,9 +165,7 @@ void GLCanvas::wheelEvent(QWheelEvent* event) {
} }
void messageHandler(QtMsgType type, const char* message) { void messageHandler(QtMsgType type, const char* message) {
printf("%s", message); fprintf(stdout, "%s", message);
fflush(stdout);
LogDisplay::instance.addMessage(message); LogDisplay::instance.addMessage(message);
} }