From 217f84e030c66c3852ad7580e1b132fbbe559534 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 16 Nov 2012 17:02:34 +0000 Subject: [PATCH] Don't send stderr to wsjtx.log in Linux, I want to see qDebug() output. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2744 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index acb640a2a..99a204f00 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -27,7 +27,9 @@ MainWindow::MainWindow(QWidget *parent) : { ui->setupUi(this); +#ifdef WIN32 freopen("wsjtx.log","w",stderr); +#endif on_EraseButton_clicked(); ui->labUTC->setStyleSheet( \ "QLabel { background-color : black; color : yellow; }"); @@ -114,8 +116,6 @@ MainWindow::MainWindow(QWidget *parent) : m_dataAvailable=false; decodeBusy(false); - qDebug() << "AA"; - ui->xThermo->setFillBrush(Qt::green); PaError paerr=Pa_Initialize(); //Initialize Portaudio if(paerr!=paNoError) {