From 9116009b0b46eb95631c096a7ff5a7493cd480de Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Fri, 21 Nov 2025 11:19:43 +0100 Subject: [PATCH] Geotiff: Disable add and delete for readonly mode. --- src/View/GeoTIFF/Window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/View/GeoTIFF/Window.py b/src/View/GeoTIFF/Window.py index 1fcf6650..d428ea30 100644 --- a/src/View/GeoTIFF/Window.py +++ b/src/View/GeoTIFF/Window.py @@ -109,6 +109,9 @@ class GeoTIFFListWindow(PamhyrWindow): if self._study.is_editable(): self.find(QAction, "action_add").triggered.connect(self.add) self.find(QAction, "action_delete").triggered.connect(self.delete) + else: + self.find(QAction, "action_add").setEnabled(False) + self.find(QAction, "action_delete").setEnabled(False) self.find(QAction, "action_edit").triggered.connect(self.edit)