Skip to content

Commit

Permalink
Fix CyclingAnalytics upload
Browse files Browse the repository at this point in the history
.. bit of a hacky fix, but practical enough.
  • Loading branch information
liversedge committed Nov 18, 2014
1 parent 4b213a0 commit ca3ee9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OAuthDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void
OAuthDialog::urlChanged(const QUrl &url)
{
if (url.toString().startsWith("http://www.goldencheetah.org/?state=&code=") ||
url.toString().startsWith("https://www.cyclinganalytics.com/?code=") ||
url.toString().startsWith("http://www.goldencheetah.org/?code=")) {
QString code = url.toString().right(url.toString().length()-url.toString().indexOf("code=")-5);

Expand Down

0 comments on commit ca3ee9c

Please sign in to comment.