Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/foursquare/FoursquarePlugin.cpp
Context not available. | |||||
79 | 79 | | |||
---|---|---|---|---|---|
80 | bool FoursquarePlugin::isAuthenticated() | 80 | bool FoursquarePlugin::isAuthenticated() | ||
81 | { | 81 | { | ||
82 | #ifndef APPLE_STANDALONE_BUNDLE | ||||
83 | QSettings::setDefaultFormat(QSettings::IniFormat); | ||||
84 | #endif | ||||
82 | QSettings settings; | 85 | QSettings settings; | ||
83 | 86 | | |||
84 | return !settings.value(QStringLiteral("access_token")).isNull(); | 87 | return !settings.value(QStringLiteral("access_token")).isNull(); | ||
Context not available. | |||||
88 | { | 91 | { | ||
89 | QString expected = "http://edu.kde.org/marble/dummy#access_token="; | 92 | QString expected = "http://edu.kde.org/marble/dummy#access_token="; | ||
90 | if( tokenUrl.startsWith( expected ) ) { | 93 | if( tokenUrl.startsWith( expected ) ) { | ||
94 | #ifndef APPLE_STANDALONE_BUNDLE | ||||
95 | QSettings::setDefaultFormat(QSettings::IniFormat); | ||||
96 | #endif | ||||
91 | QSettings settings; | 97 | QSettings settings; | ||
92 | QString url = tokenUrl; | 98 | QString url = tokenUrl; | ||
93 | settings.setValue(QStringLiteral("access_token"), url.remove(expected)); | 99 | settings.setValue(QStringLiteral("access_token"), url.remove(expected)); | ||
Context not available. |