mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Merge branch 'split_reach' into dev_dylan
This commit is contained in:
commit
cdbcb2b539
40 files changed
+905
-93
No files matched your search
+11
-5
@@ -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]
|
||||
)
|
||||
Reference in new issue
Block a user