Changeset 3060 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-02-28T18:58:34+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r3043 r3060 280 280 content = reader.fetchHelpTopicContent(url, true); 281 281 } catch(MissingHelpContentException e1) { 282 this.url = url; 282 283 handleMissingHelpContent(relativeHelpTopic); 283 284 return; … … 310 311 content = reader.fetchHelpTopicContent(url, true); 311 312 } catch(MissingHelpContentException e) { 313 this.url = url; 312 314 handleMissingHelpContent(absoluteHelpTopic); 313 315 return; … … 406 408 407 409 public void actionPerformed(ActionEvent e) { 408 if (!getUrl().startsWith(HelpUtil.getWikiBaseHelpUrl())) { 410 String url = getUrl(); 411 if(url == null) 412 return; 413 if (!url.startsWith(HelpUtil.getWikiBaseHelpUrl())) { 409 414 String message = tr( 410 415 "<html>The current URL <tt>{0}</tt><br>" … … 422 427 return; 423 428 } 424 String url = getUrl();425 429 url = url.replaceAll("#[^#]*$", ""); 426 430 OpenBrowser.displayUrl(url+"?action=edit");
Note:
See TracChangeset
for help on using the changeset viewer.