Ticket #19876: 19876.patch
| File 19876.patch, 1.4 KB (added by , 5 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
229 229 public void dispose() { 230 230 previouslySelected = tpPreferences.getSelectedTab(); 231 231 removeWindowListener(windowEventHandler); 232 setVisible(false); // save current geometry 232 233 super.dispose(); 233 234 } 234 235 } -
src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
642 642 Icon icon = getIconAt(index); 643 643 remove(index); 644 644 if (index <= insertGUITabsForSetting(icon, preferenceSettings, index)) { 645 if (index > 0) { 646 // see #19876: avoid situation when icon in left pane doesn't match the preference setting 647 setSelectedIndex(0); 648 } 645 649 setSelectedIndex(index); 646 650 } 647 651 } catch (SecurityException ex) {
