refs #4877 fix a possible button title was ignored in the dialog