[gnome-maps] osmEdit: Use the call proxy when checking the OAuth access token
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] osmEdit: Use the call proxy when checking the OAuth access token
- Date: Sat, 23 Jan 2016 16:09:29 +0000 (UTC)
commit c1f058e4618b1e9b91b6ed2eef7043c093c7de75
Author: Marcus Lundblad <ml update uu se>
Date: Sat Jan 23 12:19:19 2016 +0100
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
src/osmConnection.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/osmConnection.js b/src/osmConnection.js
index fbb495e..d194884 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]