mirror of https://gitlab.com/pamhyr/pamhyr2
Friction: application's stricklers are now read-only in the friction window
parent
b9ab202e3f
commit
b468a1eb70
|
|
@ -91,11 +91,6 @@ class StricklersWindow(PamhyrWindow):
|
|||
def setup_table(self):
|
||||
self._table = {}
|
||||
|
||||
if self._study.is_editable():
|
||||
editable_headers = ["name", "comment", "minor", "medium"]
|
||||
else:
|
||||
editable_headers = []
|
||||
|
||||
for t in ["app", "study"]:
|
||||
table = self.find(QTableView, f"tableView_{t}")
|
||||
if t == "study":
|
||||
|
|
@ -103,6 +98,10 @@ class StricklersWindow(PamhyrWindow):
|
|||
else:
|
||||
data = self._config.stricklers
|
||||
|
||||
editable_headers = []
|
||||
if t == "study" and self._study.is_editable():
|
||||
editable_headers = ["name", "comment", "minor", "medium"]
|
||||
|
||||
self._table[t] = TableModel(
|
||||
table_view=table,
|
||||
table_headers=self._trad.get_dict("table_headers"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue