Do not keep the log if the log window is not visible.

This commit is contained in:
Klaas Freitag 2013-08-18 13:28:40 +02:00
parent b608f5a670
commit 47eb5ff1d9

View file

@ -132,7 +132,9 @@ LogBrowser::~LogBrowser()
void LogBrowser::slotNewLog( const QString& msg )
{
_logWidget->appendPlainText( msg );
if( _logWidget->isVisible() ) {
_logWidget->appendPlainText( msg );
}
if( _logstream ) {
(*_logstream) << msg << endl;