Please test.
I do not know what is going on, but after I apply your patch, 1. open a new document 2. insert displayed math, type in dd, insert label, the dialog can not get focus. I revert your patch and things go back to normal. This is under linux, for 1.4.x. Bo
