Gui: avoid deadlock with modal dialogs
LineEdit: let Qt do the right thing for us!