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):
self._table.redo()
def edit_stricklers(self):
strick = self.sub_win_filter_first(
"Stricklers",
contain=[]
)
if self.sub_window_exists(
StricklersWindow,
data=[self._study, self.parent.conf]
):
return
if strick is None:
strick = StricklersWindow(
study=self._study,
config=self.parent.conf,
parent=self
)
strick.show()
else:
strick.activateWindow()
strick = StricklersWindow(
study=self._study,
config=self.parent.conf,
parent=self
)
strick.show()
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