refactoring
fixed bug: diff-dialog was not selecting an initial filename when re-opened