issue #0002724: Redirecting messages to Python console apply issue.

This commit is contained in:
wmayer 2016-10-09 18:47:11 +02:00
parent ff1b9dde41
commit 3cac7be520

View File

@ -561,12 +561,12 @@ void ReportOutput::OnChange(Base::Subject<const char*> &rCaller, const char * sR
setTabStopWidth(width);
}
else if (strcmp(sReason, "RedirectPythonOutput") == 0) {
bool checked = rclGrp.GetBool(sReason);
bool checked = rclGrp.GetBool(sReason, true);
if (checked != d->redirected_stdout)
onToggleRedirectPythonStdout();
}
else if (strcmp(sReason, "RedirectPythonErrors") == 0) {
bool checked = rclGrp.GetBool(sReason);
bool checked = rclGrp.GetBool(sReason, true);
if (checked != d->redirected_stderr)
onToggleRedirectPythonStderr();
}