Wrapped the else block with brackets so that selModel.clearSelections is only called when the form is not dirty after unloading the data. It was happening even when the user selects the 'No' button on the unsaved data popup message.
Authored by: cosbor11 2014-08-27
Parent: [r7916]
Child: [r7918]