Skip to content

Commit

Permalink
Reset SuppressFormPopup before addDocument, fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Aug 9, 2021
1 parent 242f8c9 commit 29c9c1d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def saveChildLayerEdits(self):
@pyqtSlot()
def addDocument(self):

# Workaround because of QGIS not resetting this property after linking features
self.editorContext().vectorLayerTools().setForceSuppressFormPopup(False)
self.addFeature()

@pyqtSlot()
Expand All @@ -288,6 +290,9 @@ def addDroppedDocument(self, fileUrl):
if self.checkLayerEditingMode() is False:
return

# Workaround because of QGIS not resetting this property after linking features
self.editorContext().vectorLayerTools().setForceSuppressFormPopup(False)

layer = self.relation().referencingLayer()
if self.nmRelation().isValid():
layer = self.nmRelation().referencedLayer()
Expand Down

0 comments on commit 29c9c1d

Please sign in to comment.