Ignore:
Timestamp:
2010-09-15T16:18:59+02:00 (14 years ago)
Author:
krokkofant
Message:

'bugfix of search when layer is added'

Location:
applications/editors/josm/plugins/waypoint_search
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/waypoint_search/build.xml

    r23160 r23180  
    3131
    3232    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="better integration wih JOSM gui" />
     33    <property name="commit.message" value="bugfix of search when layer is added" />
    3434    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3535    <property name="plugin.main.version" value="3514" />
  • applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/SelectWaypointDialog.java

    r23160 r23180  
    6464   
    6565        public void updateSearchResults(){
    66                 String searchfor;
     66                String searchfor = "";
    6767                listModel.clear();
    6868                SearchResultObjectCache.clear();
    69                 if (first_time_search) {
    70                         searchfor = "";
    71                         first_time_search = false;
    72                 } else {
     69                if (!first_time_search) {
    7370                        searchfor = searchPattern.getText();
    7471                }
     
    9693        @Override
    9794        public void keyTyped(KeyEvent arg0) {
    98                 // TODO Auto-generated method stub
     95                first_time_search = false;
    9996        }
    10097
  • applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/WaypointSearchPlugin.java

    r22661 r23180  
    3636                        Main.map.addToggleDialog(waypointDialog);
    3737                }
    38                 //Enable to menu
     38                //update search
    3939                if (engine.gpxLayersExist()) {
    4040                        waypointDialog.updateSearchResults();
Note: See TracChangeset for help on using the changeset viewer.