Undo spelling suggestion before showing dialog

Because showing the dialog changes the focus and triggers a reset signal.