mirror of https://gitlab.com/pamhyr/pamhyr2
Geotiff: Disable add and delete for readonly mode.
parent
4e4ceb5074
commit
9116009b0b
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue