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

This commit is contained in:
wmayer
2016-10-09 18:47:11 +02:00
parent 4d6d8e71f4
commit 030c43e047

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();
}