From 5759e895cece297371756fe41c284adf321850da Mon Sep 17 00:00:00 2001 From: SebastienPeillet Date: Thu, 14 Mar 2024 09:02:45 +0100 Subject: [PATCH 1/2] add duplicate action on followers table --- src/core/layers/duplicate_action.py | 2 +- src/core/layers/followers.py | 2 +- src/core/session.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/layers/duplicate_action.py b/src/core/layers/duplicate_action.py index d76bc88e..62591303 100644 --- a/src/core/layers/duplicate_action.py +++ b/src/core/layers/duplicate_action.py @@ -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) diff --git a/src/core/layers/followers.py b/src/core/layers/followers.py index 08e2d952..7dec9deb 100644 --- a/src/core/layers/followers.py +++ b/src/core/layers/followers.py @@ -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 diff --git a/src/core/session.py b/src/core/session.py index c0cf2866..cd4b9640 100644 --- a/src/core/session.py +++ b/src/core/session.py @@ -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 From 2e8ac0ca090add37d5d50c983cb4ad5722ead3b9 Mon Sep 17 00:00:00 2001 From: SebastienPeillet Date: Thu, 14 Mar 2024 09:43:54 +0100 Subject: [PATCH 2/2] change size of followers windows to see all attributes --- src/gui/ui/follower.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/ui/follower.ui b/src/gui/ui/follower.ui index 57335285..93b72db8 100644 --- a/src/gui/ui/follower.ui +++ b/src/gui/ui/follower.ui @@ -6,8 +6,8 @@ 0 0 - 689 - 428 + 1100 + 450