Changeset 17305 in josm


Ignore:
Timestamp:
2020-11-09T08:55:34+01:00 (2 weeks ago)
Author:
GerdP
Message:

see #7548: Re-organize the preference dialog

  • Correct handling of expert mode toggle (when enable/disable expert mode ... no content displayed)

(regression introduced by r17265)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java

    r17297 r17305  
    561561            });
    562562        }
     563        int index = -1;
    563564        if (sel != null) {
    564             int index = indexOfComponent(sel);
    565             if (index > -1) {
    566                 setSelectedIndex(index);
    567             }
    568         }
    569         setSelectedIndex(-1);
     565            index = indexOfComponent(sel);
     566        }
     567        setSelectedIndex(index);
    570568    }
    571569
Note: See TracChangeset for help on using the changeset viewer.