Changeset 15356 in josm for trunk/src/org


Ignore:
Timestamp:
2019-09-19T11:12:31+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #18146 - don't remember last search performed from properties/selection dialogs

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r14932 r15356  
    224224        saveToHistory(s);
    225225        lastSearch = new SearchSetting(s);
    226         search(s);
     226        searchStateless(s);
    227227    }
    228228
     
    234234    public static void searchWithoutHistory(SearchSetting s) {
    235235        lastSearch = new SearchSetting(s);
    236         search(s);
     236        searchStateless(s);
    237237    }
    238238
     
    247247        searchSetting.text = search;
    248248        searchSetting.mode = mode;
    249         search(searchSetting);
    250     }
    251 
    252     static void search(SearchSetting s) {
     249        searchStateless(searchSetting);
     250    }
     251
     252    /**
     253     * Performs a stateless search specified by the settings in <code>s</code>.
     254     *
     255     * @param s search settings
     256     * @since 15356
     257     */
     258    public static void searchStateless(SearchSetting s) {
    253259        SearchTask.newSearchTask(s, new SelectSearchReceiver()).run();
    254260    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r14734 r15356  
    746746        @Override
    747747        public void actionPerformed(ActionEvent e) {
    748             org.openstreetmap.josm.actions.search.SearchAction.searchWithoutHistory(s);
     748            org.openstreetmap.josm.actions.search.SearchAction.searchStateless(s);
    749749        }
    750750    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r14685 r15356  
    11921192                return;
    11931193            final SearchSetting ss = createSearchSetting(key, sel, sameType);
    1194             org.openstreetmap.josm.actions.search.SearchAction.searchWithoutHistory(ss);
     1194            org.openstreetmap.josm.actions.search.SearchAction.searchStateless(ss);
    11951195        }
    11961196    }
Note: See TracChangeset for help on using the changeset viewer.