mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-16 13:02:49 +00:00
40603a7552
As suggested there, we attach ourselves to the newly created inset, if we in fact just created an inset. (This will only matter if Apply was clicked, so the dialog is still open, but I did the calcuation anyway, as it seems cheap enough.) This allows the user to modify that inset (e.g., change the format) and also prevents another click on Apply, or OK, from creating another dialog. I've also removed the override of disconnectOnApply(). It does not work, anyway, I think because it only works with GuiDialog, not with DialogView-based dialogs.