App: report error on copying OriginGroup without dependency

This commit is contained in:
Zheng, Lei
2020-08-26 16:33:32 +08:00
committed by wwmayer
parent a5899f3892
commit 643b2d6aa0
3 changed files with 25 additions and 2 deletions

View File

@@ -193,8 +193,9 @@ void GeoFeatureGroupExtension::extensionOnChanged(const Property* p) {
//objects are only allowed in a single GeoFeatureGroup
if(p == &Group && !Group.testStatus(Property::User3)) {
if(!getExtendedObject()->isRestoring() &&
!getExtendedObject()->getDocument()->isPerformingTransaction()) {
if((!getExtendedObject()->isRestoring()
|| getExtendedObject()->getDocument()->testStatus(Document::Importing))
&& !getExtendedObject()->getDocument()->isPerformingTransaction()) {
bool error = false;
auto corrected = Group.getValues();