mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Profile: Forbidden duplicate window for profile editing.
This commit is contained in:
1 parent
ec9a061f9a
commit
289c8ed129
1 file changed
+12
-5
@@ -184,13 +184,20 @@ class GeometryWindow(ASubMainWindow, ListedSubWindow):
|
||||
for row in rows:
|
||||
profile = self._reach.profile(row)
|
||||
|
||||
win = ProfileWindow(
|
||||
profile = profile,
|
||||
parent = self,
|
||||
win = self.sub_win_filter_first(
|
||||
"Profile",
|
||||
contain = [self._reach.name, str(profile.kp)]
|
||||
)
|
||||
|
||||
self._profile_window.append(win)
|
||||
win.show()
|
||||
if win is None:
|
||||
win = ProfileWindow(
|
||||
profile = profile,
|
||||
parent = self,
|
||||
)
|
||||
self._profile_window.append(win)
|
||||
win.show()
|
||||
else:
|
||||
win.activateWindow()
|
||||
|
||||
self.tableView.model().blockSignals(False)
|
||||
|
||||
|
||||
Reference in new issue
Block a user