mirror of https://gitlab.com/pamhyr/pamhyr2
Geometry: Profile: Forbidden duplicate window for profile editing.
parent
ec9a061f9a
commit
289c8ed129
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue