Logger: always log to log widget

This commit is contained in:
Daniel Molkentin 2013-08-14 21:23:40 +02:00
parent 192212c682
commit ee439382ed

View file

@ -58,8 +58,7 @@ LogWidget::LogWidget(QWidget *parent)
LogBrowser::LogBrowser(QWidget *parent) : LogBrowser::LogBrowser(QWidget *parent) :
QDialog(parent), QDialog(parent),
_logWidget( new LogWidget(parent) ), _logWidget( new LogWidget(parent) ),
_doFileFlush(false), _doFileFlush(false)
_logstream(0)
{ {
setObjectName("LogBrowser"); // for save/restoreGeometry() setObjectName("LogBrowser"); // for save/restoreGeometry()
setWindowTitle(tr("Log Output")); setWindowTitle(tr("Log Output"));
@ -134,9 +133,7 @@ LogBrowser::~LogBrowser()
void LogBrowser::slotNewLog( const QString& msg ) void LogBrowser::slotNewLog( const QString& msg )
{ {
if( _logWidget->isVisible() ) { _logWidget->appendPlainText( msg );
_logWidget->appendPlainText( msg );
}
if( _logstream ) { if( _logstream ) {
(*_logstream) << msg << endl; (*_logstream) << msg << endl;