Skip to content

Commit 2046b7e

Browse files
committed
Bugfixes in preferences handling and range checking.
1 parent 6916b80 commit 2046b7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/de/zbit/kegg/gui/TranslatorUI.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public void saveFile() {
513513
*/
514514
public void keyPressed(KeyEvent e) {
515515
// Preferences for the "input file"
516-
PreferencesPanel.setProperty(prefsIO, e.getSource());
516+
PreferencesPanel.setProperty(prefsIO, e.getSource(), true);
517517
}
518518

519519
/*
@@ -523,7 +523,7 @@ public void keyPressed(KeyEvent e) {
523523
*/
524524
public void keyReleased(KeyEvent e) {
525525
// Preferences for the "input file"
526-
PreferencesPanel.setProperty(prefsIO, e.getSource());
526+
PreferencesPanel.setProperty(prefsIO, e.getSource(), true);
527527
}
528528

529529
/*
@@ -533,7 +533,7 @@ public void keyReleased(KeyEvent e) {
533533
*/
534534
public void keyTyped(KeyEvent e) {
535535
// Preferences for the "input file"
536-
PreferencesPanel.setProperty(prefsIO, e.getSource());
536+
PreferencesPanel.setProperty(prefsIO, e.getSource(), true);
537537
}
538538

539539
/*
@@ -544,7 +544,7 @@ public void keyTyped(KeyEvent e) {
544544
*/
545545
public void itemStateChanged(ItemEvent e) {
546546
// Preferences for the "output format"
547-
PreferencesPanel.setProperty(prefsIO, e.getSource());
547+
PreferencesPanel.setProperty(prefsIO, e.getSource(), true);
548548
}
549549

550550
/*

0 commit comments

Comments
 (0)