From 47eb5ff1d9c44de69b5b1a5ad3e043059b8ace8f Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Sun, 18 Aug 2013 13:28:40 +0200 Subject: [PATCH] Do not keep the log if the log window is not visible. --- src/mirall/logbrowser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mirall/logbrowser.cpp b/src/mirall/logbrowser.cpp index 7da4f4c10..b17c16911 100644 --- a/src/mirall/logbrowser.cpp +++ b/src/mirall/logbrowser.cpp @@ -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;