Skip to content

Commit

Permalink
Merge pull request #41 from opengisch/renamevariables
Browse files Browse the repository at this point in the history
Rename variable with more descriptive name
  • Loading branch information
domi4484 authored Apr 25, 2023
2 parents 9abb0a8 + 67c63b9 commit 1dbcb76
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions linking_relation_editor/gui/linking_child_manager_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(
nmRelation: QgsRelation,
editorContext: QgsAttributeEditorContext,
oneToOne: bool,
config: dict,
linkingChildManagerDialogConfig: dict,
parent=None,
):
super().__init__(parent)
Expand All @@ -62,7 +62,7 @@ def __init__(
self._nmRelation = nmRelation
self._editorContext = editorContext
self._oneToOne = oneToOne
self._config = config
self._linkingChildManagerDialogConfig = linkingChildManagerDialogConfig

self._mapToolSelect = None
if self._canvas():
Expand Down Expand Up @@ -472,7 +472,7 @@ def _rejecting(self):

def _accepting(self):
# Save join features edits
if self._config.get(CONFIG_SHOW_AND_EDIT_JOIN_TABLE_ATTRIBUTES, False):
if self._linkingChildManagerDialogConfig.get(CONFIG_SHOW_AND_EDIT_JOIN_TABLE_ATTRIBUTES, False):
for attributeFormWidget in self._featureFormWidgets:
attributeFormWidget.save()

Expand All @@ -492,7 +492,9 @@ def _updateFeaturesTreeWidgetRight(self):
treeWidgetItem.setIcon(0, featureItem.display_icon())
self.mFeaturesTreeWidgetRight.addTopLevelItem(treeWidgetItem)

if self._nmRelation.isValid() and self._config.get(CONFIG_SHOW_AND_EDIT_JOIN_TABLE_ATTRIBUTES, False):
if self._nmRelation.isValid() and self._linkingChildManagerDialogConfig.get(
CONFIG_SHOW_AND_EDIT_JOIN_TABLE_ATTRIBUTES, False
):
treeWidgetItemChildren = QTreeWidgetItem(treeWidgetItem)
treeWidgetItem.addChild(treeWidgetItemChildren)

Expand Down

0 comments on commit 1dbcb76

Please sign in to comment.