Skip to content

Commit

Permalink
add duplicate action on followers table
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienPeillet committed Mar 14, 2024
1 parent 44b51da commit 5759e89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/layers/duplicate_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
self.HEffortLayout.addWidget(self.effortComboBox)
self.VLayout.addLayout(self.HEffortLayout)

self.updateGeometry()
self.updateGeometry()

self.HBottomLayout = QHBoxLayout()
self.HBottomLayout.addWidget(self.cancelButton)
Expand Down
2 changes: 1 addition & 1 deletion src/core/layers/followers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class SammoFollowersLayer(SammoLayer):
def __init__(self, db: SammoDataBase, observersLayer, speciesLayer):
super().__init__(db, FOLLOWERS_TABLE, "Followers", True)
super().__init__(db, FOLLOWERS_TABLE, "Followers", True, True)
self.observersLayer = observersLayer
self.speciesLayer = speciesLayer

Expand Down
1 change: 1 addition & 0 deletions src/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def init(self, directory: str, load: bool = True) -> None:
self._sightingsLayer.addDuplicateAction(self.sightingsLayer)
self.followersLayer.actions().clearActions()
self._followersLayer.addSoundAction(self.followersLayer)
self._sightingsLayer.addDuplicateAction(self.followersLayer)
QgsSettings().setValue("qgis/enableMacros", "SessionOnly")
self.environmentLayer.attributeValueChanged.connect(
self.updateRouteTypeStatus
Expand Down

0 comments on commit 5759e89

Please sign in to comment.