From 4e4ceb5074bffb9dd4d1e98298f7fe8381567435 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Fri, 21 Nov 2025 11:14:29 +0100 Subject: [PATCH] Geotiff: Edit: Fix readonly mode. --- src/View/GeoTIFF/Edit/Window.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/View/GeoTIFF/Edit/Window.py b/src/View/GeoTIFF/Edit/Window.py index fa14292d..b36980c1 100644 --- a/src/View/GeoTIFF/Edit/Window.py +++ b/src/View/GeoTIFF/Edit/Window.py @@ -124,8 +124,15 @@ class EditGeoTIFFWindow(PamhyrWindow): if self._study.is_read_only(): self.set_check_box_enable("checkBox", False) self.set_line_edit_enable("lineEdit_name", False) - self.set_line_edit_enable("lineEdit_path", False) - self.set_plaintext_edit_enable("plainTextEdit", False) + self.set_line_edit_enable("lineEdit_description", False) + + for button in ["import", "bottom", "top", "left", "right"]: + self.find(QPushButton, f"pushButton_{button}")\ + .setEnabled(False) + + for spin in ["bottom", "top", "left", "right"]: + self.find(QDoubleSpinBox, f"doubleSpinBox_{spin}")\ + .setEnabled(False) def _set_values_from_bounds(self, bounds): self._values = {