Commit 289c8ed1 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Geometry: Profile: Forbidden duplicate window for profile editing.

Showing with 12 additions and 5 deletions
+12 -5
...@@ -184,13 +184,20 @@ class GeometryWindow(ASubMainWindow, ListedSubWindow): ...@@ -184,13 +184,20 @@ class GeometryWindow(ASubMainWindow, ListedSubWindow):
for row in rows: for row in rows:
profile = self._reach.profile(row) profile = self._reach.profile(row)
win = ProfileWindow( win = self.sub_win_filter_first(
profile = profile, "Profile",
parent = self, contain = [self._reach.name, str(profile.kp)]
) )
self._profile_window.append(win) if win is None:
win.show() win = ProfileWindow(
profile = profile,
parent = self,
)
self._profile_window.append(win)
win.show()
else:
win.activateWindow()
self.tableView.model().blockSignals(False) self.tableView.model().blockSignals(False)
......
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