mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 03:51:16 +00:00
A file dropped on a canvas that asks for import options (a layered PSD, a PDF with several pages, a DXF drawing, a text file) kept only its placement params in the dialog. The dialog's OK then placed the file in whichever document was active at that moment, and placed it even when the dropped-on document had been reverted since. The drop now carries its target document and revert count in the place params, as the place cursor's import options carry their token. Placing checks them on the drop and again on the dialog's OK: the file goes to the document it was dropped on, which becomes active again, and is not placed when that document has been closed or reverted. The dialog then stays open and shows the reason. The checks drop_files ran itself now run in that one place.