| 990 | } |
| 991 | |
| 992 | void DocumentObject::onEarlyChange(const Property* prop) |
| 993 | { |
| 994 | if (isFreezed() && prop != &Visibility) { |
| 995 | return; |
| 996 | } |
| 997 | |
| 998 | if (GetApplication().isClosingAll()) { |
| 999 | return; |
| 1000 | } |
| 1001 | |
| 1002 | if (!GetApplication().isRestoring() && !prop->testStatus(Property::PartialTrigger) |
| 1003 | && getDocument() && getDocument()->testStatus(Document::PartialDoc)) { |
| 1004 | static App::Document* warnedDoc; |
| 1005 | if (warnedDoc != getDocument()) { |
| 1006 | warnedDoc = getDocument(); |
| 1007 | FC_WARN("Changes to partial loaded document will not be saved: " << getFullName() << '.' |
| 1008 | << prop->getName()); |
| 1009 | } |
| 1010 | } |
| 1011 | |
| 1012 | signalEarlyChanged(*this, *prop); |
| 1013 | } |
| 1014 | |
| 1015 | /// get called by the container when a Property was changed |
| 1016 | void DocumentObject::onChanged(const Property* prop) |
no test coverage detected