+ Make transient directory of the form ExeName_Doc_{UUID}_{HASH}_{PID}
+ Set some properties in Document read-only + Implement Document::saveAs + Fix PropertyUUID::setValue() + Add a field for UUID in document information panel
This commit is contained in:
@@ -1348,8 +1348,15 @@ void PropertyUUID::setPyObject(PyObject *value)
|
||||
throw Py::TypeError(error);
|
||||
}
|
||||
|
||||
// assign the string
|
||||
setValue(string);
|
||||
try {
|
||||
// assign the string
|
||||
Base::Uuid uid;
|
||||
uid.setValue(string);
|
||||
setValue(uid);
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
throw Py::RuntimeError(e.what());
|
||||
}
|
||||
}
|
||||
|
||||
void PropertyUUID::Save (Base::Writer &writer) const
|
||||
|
||||
Reference in New Issue
Block a user