Commit c1f058e4 authored by Marcus Lundblad's avatar Marcus Lundblad

osmEdit: Use the call proxy when checking the OAuth access token

We can't rely on the sign-in proxy being availble to check for the
OAuth access token when trying to upload a changeset, since the
changes in https://bugzilla.gnome.org/show_bug.cgi?id=759464
since that proxy object will only be available right after a sign-in
operation now.
Instead check the call proxy, which is also updated on successfull
sign-in and in the keyring lookup callback.

https://bugzilla.gnome.org/show_bug.cgi?id=761019
parent 7d7171b1
......@@ -90,7 +90,7 @@ const OSMConnection = new Lang.Class({
OAuth access token enrolled, so, if the currently instanciated
proxy instance doesn't have a token set, we could safely count on
it being present in the keyring */
if (this._oauthProxy.get_token() === null) {
if (this._callProxy.get_token() === null) {
Secret.password_lookup(SECRET_SCHEMA, {}, null, function(s, res) {
this._onPasswordLookedUp(res,
comment,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment