Merge branch 'split_reach' into dev_dylan

This commit is contained in:
Dylan Jeannin committed 2026-08-11 11:17:16 +02:00
commit cdbcb2b539
40 files changed
+905 -93

No files matched your search

+11 -5
View File
@@ -1526,6 +1526,16 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
sl.show()
def open_reach_sediment_layers(self):
if self._study is None:
logger.debug(
"No study open for reach sediment layers edition..."
)
return
if not self._study.river.has_current_reach():
self.msg_select_reach()
return
reach = self._study.river.current_reach().reach
if self.sub_window_exists(
@@ -2307,11 +2317,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
logger.debug("No study open for sql debuging...")
return
# todo : gérer le cas où le dossier a un espace dans le nom
# (ne veut pas ouvrir sqlitebrowser)
file = self._study.filename
_ = subprocess.Popen(
f"sqlitebrowser {file}",
shell=True
["sqlitebrowser", file]
)