Ignore:
Timestamp:
2018-03-19T20:22:42+01:00 (21 months ago)
Author:
Don-vip
Message:

fix #16106 - disable search button arrow when button itself is disabled. Default behaviour of SideButton is not changed (as select button does not have the same logic)

File:
1 edited

Legend:

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

    r13434 r13545  
    762762        static SearchTask newSearchTask(SearchSetting setting, SearchReceiver resultReceiver) {
    763763            final DataSet ds = MainApplication.getLayerManager().getActiveDataSet();
     764            if (ds == null) {
     765                throw new IllegalStateException("No active dataset");
     766            }
    764767            return newSearchTask(setting, ds, resultReceiver);
    765768        }
Note: See TracChangeset for help on using the changeset viewer.