mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Logger: always log to log widget
This commit is contained in:
parent
192212c682
commit
ee439382ed
1 changed files with 2 additions and 5 deletions
|
@ -58,8 +58,7 @@ LogWidget::LogWidget(QWidget *parent)
|
|||
LogBrowser::LogBrowser(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
_logWidget( new LogWidget(parent) ),
|
||||
_doFileFlush(false),
|
||||
_logstream(0)
|
||||
_doFileFlush(false)
|
||||
{
|
||||
setObjectName("LogBrowser"); // for save/restoreGeometry()
|
||||
setWindowTitle(tr("Log Output"));
|
||||
|
@ -134,9 +133,7 @@ LogBrowser::~LogBrowser()
|
|||
|
||||
void LogBrowser::slotNewLog( const QString& msg )
|
||||
{
|
||||
if( _logWidget->isVisible() ) {
|
||||
_logWidget->appendPlainText( msg );
|
||||
}
|
||||
_logWidget->appendPlainText( msg );
|
||||
|
||||
if( _logstream ) {
|
||||
(*_logstream) << msg << endl;
|
||||
|
|
Loading…
Reference in a new issue