Ignore:
Timestamp:
2014-02-12T20:52:31+01:00 (10 years ago)
Author:
Don-vip
Message:

see #9710 - OAuth advanced parameters persistence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java

    r6845 r6847  
    246246        } else {
    247247            cbUseDefaults.setSelected(false);
    248             tfConsumerKey.setText(pref.get("oauth.settings.consumer-key", ""));
    249             tfConsumerSecret.setText(pref.get("oauth.settings.consumer-secret", ""));
    250             tfRequestTokenURL.setText(pref.get("oauth.settings.request-token-url", ""));
    251             tfAccessTokenURL.setText(pref.get("oauth.settings.access-token-url", ""));
    252             tfAuthoriseURL.setText(pref.get("oauth.settings.authorise-url", ""));
     248            tfConsumerKey.setText(pref.get("oauth.settings.consumer-key", OAuthParameters.DEFAULT_JOSM_CONSUMER_KEY));
     249            tfConsumerSecret.setText(pref.get("oauth.settings.consumer-secret", OAuthParameters.DEFAULT_JOSM_CONSUMER_SECRET));
     250            tfRequestTokenURL.setText(pref.get("oauth.settings.request-token-url", OAuthParameters.DEFAULT_REQUEST_TOKEN_URL));
     251            tfAccessTokenURL.setText(pref.get("oauth.settings.access-token-url", OAuthParameters.DEFAULT_ACCESS_TOKEN_URL));
     252            tfAuthoriseURL.setText(pref.get("oauth.settings.authorise-url", OAuthParameters.DEFAULT_AUTHORISE_URL));
    253253            setChildComponentsEnabled(true);
    254254        }
Note: See TracChangeset for help on using the changeset viewer.