> Please comment and test. Because this patch changes core lyx > functionality, I will wait for two OKs to proceed.
No comment? There is an obvious problem with this patch in that embeddingChanged is checked in updateLabels, along with structureChanged. That is to say, embedding dialog is updated only when paragraph structure is changed, not when an inset with embedded files is created/destroyed. I am aware of this problem but have no good solution yet. If there is no objection and no better implementation, I will commit this patch tomorrow, and separate embeddingChanged from structureChanged later. Cheers, Bo