Changeset 18732 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2023-05-17T23:01:34+02:00 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r18173 r18732 73 73 74 74 static { 75 // Load the history on initial load (for the drop-down dialog) 76 loadPrefs(); 75 77 SearchCompiler.addMatchFactory(new SimpleMatchFactory() { 76 78 @Override … … 186 188 */ 187 189 public static void search() { 188 prefs.load("search.history"); 190 // Load the prefs, just in case someone fiddled with the preference value 191 loadPrefs(); 189 192 SearchSetting se = showSearchDialog(lastSearch); 190 193 if (se != null) { 191 194 searchWithHistory(se); 192 195 } 196 } 197 198 /** 199 * Load preference values into the model 200 */ 201 private static void loadPrefs() { 202 prefs.load("search.history"); 193 203 } 194 204
Note:
See TracChangeset
for help on using the changeset viewer.