Gui: Fix problem where Python output and errors are not redirected to report view until preferences window is opened

This commit is contained in:
wmayer
2022-02-24 17:42:40 +01:00
parent e0c45fe763
commit a311bed2fd

View File

@@ -413,8 +413,11 @@ ReportOutput::ReportOutput(QWidget* parent)
Base::Console().AttachObserver(this);
getWindowParameter()->Attach(this);
getWindowParameter()->NotifyAll();
// do this explicitly because the keys below might not yet be part of a group
getWindowParameter()->Notify("RedirectPythonOutput");
getWindowParameter()->Notify("RedirectPythonErrors");
_prefs = WindowParameter::getDefaultParameter()->GetGroup("Editor");
_prefs->Attach(this);
_prefs->Notify("FontSize");