fixes #0002323: Workbench Start recent list of 3 files is - after a crash - not sync with recent list in File Menu Recent list of 4 files

This commit is contained in:
wmayer
2017-10-05 10:38:42 +02:00
parent ef11efce55
commit 67b990c2b5
6 changed files with 130 additions and 31 deletions

View File

@@ -69,8 +69,6 @@ public:
}
virtual void OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::MessageType Reason)
{
if (!Reason || Reason[0] == '\0')
return;
Base::PyGILStateLocker lock;
try {
ParameterGrp& rGrp = static_cast<ParameterGrp&>(rCaller);
@@ -78,7 +76,9 @@ public:
Py::Callable method(this->inst.getAttr(std::string("onChange")));
Py::Tuple args(2);
args.setItem(0, Py::asObject(GetPyObject(hGrp)));
args.setItem(1, Py::String(Reason));
// A Reason of null indicates to clear the parameter group
if (Reason && Reason[0] != '\0')
args.setItem(1, Py::String(Reason));
method.apply(args);
}
catch (Py::Exception&) {