Merge pull request #323 from DevFactory/code-quality-fix-5

Code quality fixes
This commit is contained in:
Ilkka Seppälä
2015-12-30 19:47:19 +02:00
5 changed files with 9 additions and 9 deletions

View File

@ -140,11 +140,11 @@ public class FileSelectorJFrame extends JFrame implements FileSelectorView, Acti
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.ok) {
if (this.ok.equals(e.getSource())) {
this.fileName = this.input.getText();
presenter.fileNameChanged();
presenter.confirmed();
} else if (e.getSource() == this.cancel) {
} else if (this.cancel.equals(e.getSource())) {
presenter.cancelled();
}
}