1) When select "Result file name" button is clicked, and the file is selected,
check if the file has .sam format and autocheck "SAM format" checkbox.
2) Don't update "Result file name" lineedit after clicking "SAM format" checkbox, if lineedit contains already a path to .sam file.