Changeset 17265 in josm for trunk/src/org
- Timestamp:
- 2020-10-25T17:07:27+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java
r17188 r17265 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 10 import javax.swing.SwingUtilities;11 9 12 10 import org.openstreetmap.josm.gui.MainApplication; … … 108 106 public void run() { 109 107 final PreferenceDialog p = new PreferenceDialog(MainApplication.getMainFrame()); 110 SwingUtilities.invokeLater(() -> { 111 if (tab != null) { 112 p.selectPreferencesTabByClass(tab); 113 } else if (subTab != null) { 114 p.selectSubPreferencesTabByClass(subTab); 115 } else { 116 p.selectPreviouslySelectedPreferences(); 117 } 118 }); 108 if (tab != null) { 109 p.selectPreferencesTabByClass(tab); 110 } else if (subTab != null) { 111 p.selectSubPreferencesTabByClass(subTab); 112 } else { 113 p.selectPreviouslySelectedPreferences(); 114 } 119 115 p.setVisible(true); 120 116 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r17228 r17265 154 154 } else if (previouslySelected != null && previouslySelected.a != null) { 155 155 tpPreferences.selectTabByPref(previouslySelected.a); 156 } else { 157 tpPreferences.setSelectedIndex(0); 156 158 } 157 159 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r17264 r17265 559 559 } 560 560 } 561 setSelectedIndex(-1); 561 562 } 562 563
Note:
See TracChangeset
for help on using the changeset viewer.