ispyisail
e6ac117f9b
Keep wires attached when a project's copy of a symbol is replaced
...
A wire whose terminals have uuids is saved against them, and on load it
is reattached to a terminal with that uuid or dropped, with only a qDebug
line. Re-importing a changed symbol and choosing "replace" swapped the
project's definition for one whose terminal uuids differ; the placed
symbols kept the old ones until the project was reopened, so every wire
on them was lost at the next open, silently, and gone for good at the
next save.
- XmlElementCollection::copyElement(), where an embedded definition is
overwritten, carries each old terminal uuid onto the new terminal at
the same place and orientation (TerminalUuids::keep()). Terminals that
moved, and new ones, keep their own.
- Diagram::fromXml() records wires it could not reattach, logs them, and
the editor lists them in one warning after opening a project.
Measured on 2612_ats_singlephase.qet with the stored splice's terminal
uuids made to differ from the collection's: replace, save, reopen loads
34 of 131 wires on master, 131 with this change (GUI, both arms).
tst_terminaluuids covers keep() and runs the real loader.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-09-29 08:11:15 +13:00
..
2026-09-24 15:17:17 +02:00
2026-09-27 20:15:27 +02:00
2026-09-25 15:09:21 +02:00
2026-01-16 15:24:35 +01:00
2026-01-26 18:47:43 +01:00
2026-09-27 11:16:37 +13:00
2026-09-29 08:11:15 +13:00
2026-09-27 09:13:55 +13:00
2026-08-17 10:25:44 +02:00
2026-09-18 14:31:49 +12:00
2026-09-27 21:18:54 +02:00
2026-09-22 09:07:27 +02:00
2026-09-25 20:44:02 +12:00
2026-07-31 09:52:32 +12:00
2026-09-24 09:59:21 +02:00
2026-08-11 11:48:58 +12:00
2025-05-22 21:33:32 +02:00
2026-09-29 06:34:16 +13:00
2026-01-16 15:24:35 +01:00
2026-09-07 10:44:30 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 05:41:50 -05:00
2026-09-28 20:28:58 +02:00
2026-09-17 05:41:50 -05:00
2026-09-25 23:25:27 +12:00
2026-01-16 15:24:35 +01:00
2026-09-24 22:20:43 +12:00
2026-08-23 18:25:23 +02:00
2026-09-27 21:43:52 +02:00
2026-09-28 09:19:59 +13:00
2026-09-24 10:30:01 +02:00
2026-01-16 15:24:35 +01:00
2026-09-28 09:19:59 +13:00
2026-08-09 09:11:40 +02:00
2026-08-09 09:11:40 +02:00
2026-09-13 02:00:50 +12:00
2026-09-11 20:12:09 +03:00
2026-09-26 08:22:12 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-27 21:54:44 +13:00
2026-09-26 07:37:38 +12:00
2026-09-26 21:18:35 +12:00
2026-09-26 21:06:13 +12:00
2026-09-27 21:54:36 +13:00
2026-09-27 21:54:36 +13:00
2026-09-26 21:34:02 +12:00
2026-09-26 21:34:02 +12:00
2026-08-03 13:19:51 +12:00
2026-01-16 15:24:35 +01:00
2026-09-12 23:06:15 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-20 21:56:43 +02:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-08-08 00:32:31 +02:00
2026-01-16 15:24:35 +01:00
2026-09-09 11:45:36 +12:00
2026-09-27 21:54:44 +13:00
2026-09-27 21:54:44 +13:00
2026-09-29 08:11:15 +13:00
2026-09-29 08:11:15 +13:00
2026-09-27 21:14:47 +13:00
2026-08-22 11:25:47 +02:00
2026-07-14 19:27:16 +02:00
2026-01-16 15:24:35 +01:00
2026-09-28 21:59:02 +13:00
2026-09-22 09:07:27 +02:00
2026-09-28 06:16:17 +13:00
2026-09-26 21:40:32 +12:00
2026-09-26 21:40:46 +12:00
2026-09-26 21:40:46 +12:00
2026-09-27 11:16:37 +13:00
2026-01-16 15:24:35 +01:00
2026-09-07 20:54:18 +12:00
2026-09-28 05:40:05 +13:00
2026-09-27 09:08:02 +02:00
2026-09-27 21:54:44 +13:00
2026-09-27 21:54:44 +13:00
2026-09-07 10:44:30 +02:00
2026-09-07 10:44:30 +02:00
2026-08-08 21:53:20 +12:00
2026-04-26 10:48:47 +02:00
2026-07-14 19:27:16 +02:00
2026-01-16 15:24:35 +01:00
2026-08-08 00:32:31 +02:00
2026-01-16 15:24:35 +01:00
2026-09-19 12:22:24 -05:00
2026-01-16 15:24:35 +01:00
2026-08-09 09:11:40 +02:00
2026-01-16 15:24:35 +01:00
2026-09-19 12:22:24 -05:00
2026-05-13 19:42:11 +02:00
2026-09-27 21:14:47 +13:00
2026-08-04 16:36:23 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-26 10:36:40 +12:00
2026-09-26 10:22:50 +12:00
2026-09-27 21:54:36 +13:00
2026-09-27 21:54:36 +13:00
2026-08-08 08:09:45 +02:00
2026-08-06 21:37:40 +02:00
2026-08-09 19:25:56 +02:00
2026-08-06 21:37:40 +02:00
2026-09-03 15:05:22 +02:00
2026-04-19 10:44:52 +02:00
2026-09-28 14:55:04 +02:00
2026-09-28 14:55:04 +02:00
2026-09-16 15:40:41 +12:00
2026-09-16 15:40:41 +12:00
2026-09-17 00:07:46 +02:00
2026-06-20 22:31:06 +12:00
2026-09-24 21:41:00 +12:00
2026-08-11 11:33:28 +12:00
2026-01-16 15:24:35 +01:00
2026-09-20 22:58:08 +02:00
2026-09-26 21:17:19 +12:00
2026-09-25 20:44:02 +12:00
2026-09-25 20:44:02 +12:00
2026-09-18 18:28:48 +02:00
2026-08-12 12:29:56 +02:00
2026-09-23 18:38:38 +02:00
2026-09-23 16:47:07 +12:00
2026-09-26 21:40:19 +12:00
2026-09-26 10:22:50 +12:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-29 08:11:15 +13:00
2026-09-28 05:40:05 +13:00
2026-09-20 10:44:09 -05:00
2026-09-20 10:44:09 -05:00
2026-09-16 18:51:34 +12:00
2026-09-16 18:51:34 +12:00
2026-09-17 23:19:59 +12:00
2026-09-17 23:19:59 +12:00
2026-08-05 05:26:57 +12:00
2026-08-05 05:26:57 +12:00
2026-09-21 22:05:31 +02:00
2026-09-20 12:20:01 -05:00
2026-09-28 21:13:02 +13:00
2026-09-28 21:13:02 +13:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-20 12:45:07 -05:00
2026-09-19 12:26:06 -05:00
2026-08-16 07:16:33 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-07-17 10:25:49 +02:00
2026-08-08 00:32:31 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-09-17 00:07:46 +02:00
2026-08-09 01:34:22 +02:00
2026-01-16 15:24:35 +01:00
2026-09-17 00:07:46 +02:00
2026-01-16 15:24:35 +01:00
2026-07-17 10:29:13 +02:00
2026-07-17 10:29:13 +02:00
2026-09-27 09:09:44 +02:00
2026-09-27 09:09:44 +02:00
2026-09-26 21:40:19 +12:00
2026-09-26 21:40:19 +12:00
2026-09-26 10:22:50 +12:00
2020-09-07 22:03:40 +02:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-01-16 15:24:35 +01:00
2026-09-27 21:33:00 +13:00
2026-08-08 12:31:45 +02:00
2026-09-17 00:07:46 +02:00
2026-09-17 00:07:46 +02:00
2026-06-11 12:39:43 +12:00
2026-06-11 12:39:43 +12:00