Changeset 17097 in josm
- Timestamp:
- 2020-10-07T19:49:00+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java
r16966 r17097 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 10 import javax.swing.SwingUtilities; 9 11 10 12 import org.openstreetmap.josm.gui.MainApplication; … … 105 107 public void run() { 106 108 final PreferenceDialog p = new PreferenceDialog(MainApplication.getMainFrame()); 107 if (tab != null) { 108 p.selectPreferencesTabByClass(tab); 109 } else if (subTab != null) { 110 p.selectSubPreferencesTabByClass(subTab); 111 } else { 112 p.selectPreviouslySelectedPreferences(); 113 } 109 SwingUtilities.invokeLater(() -> { 110 if (tab != null) { 111 p.selectPreferencesTabByClass(tab); 112 } else if (subTab != null) { 113 p.selectSubPreferencesTabByClass(subTab); 114 } else { 115 p.selectPreviouslySelectedPreferences(); 116 } 117 }); 114 118 p.setVisible(true); 115 119 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r16966 r17097 230 230 previouslySelected = tpPreferences.getSelectedTab(); 231 231 removeWindowListener(windowEventHandler); 232 setVisible(false); // save current geometry 232 233 super.dispose(); 233 234 }
Note:
See TracChangeset
for help on using the changeset viewer.