mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-18 12:04:13 +02:00
bc6da100d3
With lazy folios, removing a folio left the tables on folios not built yet as the file had them. A table split over several folios keeps its query in its first part; when the folio holding that part was removed, the next part, built later from the file, named a part that was gone and was saved with no query. A parts list that listed the removed folio's symbols also kept its old size. With every folio built neither happens. Removing a folio that holds a table or a symbol now builds the folios holding tables first, while the removed folio is still in the project. A folio with neither builds nothing, as tst_lazyfolios checks. buildFolios() now holds the project database's update signal back and sends it once at the end, as pasting does: without that every item built made every table lay itself out again, and the save after a removal on a 50-folio project took about 270 s instead of 4.5 s. The rows are still written as each item is built, so no full refill of the database is needed (one per build made a 136-folio project's edit 20 % slower). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XCdg2Er2vYhB8Vwa5G7fSR