Changeset 12005 in josm for trunk/src/org
- Timestamp:
- 2017-04-26T01:13:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r11746 r12005 462 462 } 463 463 464 private voidinsertGUITabsForSetting(Icon icon, TabPreferenceSetting tps, int index) {464 private int insertGUITabsForSetting(Icon icon, TabPreferenceSetting tps, int index) { 465 465 int position = index; 466 466 for (PreferenceTab tab : tabs) { … … 469 469 } 470 470 } 471 return position - 1; 471 472 } 472 473 … … 595 596 Icon icon = getIconAt(index); 596 597 remove(index); 597 insertGUITabsForSetting(icon, preferenceSettings, index); 598 setSelectedIndex(index); 598 if (index <= insertGUITabsForSetting(icon, preferenceSettings, index)) { 599 setSelectedIndex(index); 600 } 599 601 } catch (SecurityException ex) { 600 602 Main.error(ex);
Note:
See TracChangeset
for help on using the changeset viewer.