Commit 0ae5c02e authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Friction: Fix open stricker edit.

Showing with 11 additions and 13 deletions
+11 -13
...@@ -240,17 +240,15 @@ class FrictionsWindow(PamhyrWindow): ...@@ -240,17 +240,15 @@ class FrictionsWindow(PamhyrWindow):
self._table.redo() self._table.redo()
def edit_stricklers(self): def edit_stricklers(self):
strick = self.sub_win_filter_first( if self.sub_window_exists(
"Stricklers", StricklersWindow,
contain=[] data=[self._study, self.parent.conf]
) ):
return
if strick is None: strick = StricklersWindow(
strick = StricklersWindow( study=self._study,
study=self._study, config=self.parent.conf,
config=self.parent.conf, parent=self
parent=self )
) strick.show()
strick.show()
else:
strick.activateWindow()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment