Skip to content

Commit

Permalink
Merge pull request #198 from hytechimaging/duplicate_action_on_followers
Browse files Browse the repository at this point in the history
add duplicate action on followers table
  • Loading branch information
SebastienPeillet authored Mar 14, 2024
2 parents 44b51da + 2e8ac0c commit bb940f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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
4 changes: 2 additions & 2 deletions src/gui/ui/follower.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>689</width>
<height>428</height>
<width>1100</width>
<height>450</height>
</rect>
</property>
<property name="windowTitle">
Expand Down

0 comments on commit bb940f4

Please sign in to comment.