Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
6f73ddc0
Commit
6f73ddc0
authored
Aug 09, 2018
by
Gus Grubba
Browse files
Convert API key and Client ID to functions instead of constants.
parent
eb341a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Airmap/AirMapManager.cc
View file @
6f73ddc0
...
...
@@ -123,8 +123,8 @@ AirMapManager::_settingsChanged()
//-- If we have a hardwired key (and no custom key is present), set it.
#if defined(QGC_AIRMAP_KEY_AVAILABLE)
if
(
!
ap
->
usePersonalApiKey
()
->
rawValue
().
toBool
())
{
settings
.
apiKey
=
k
AirmapAPIKey
;
settings
.
clientID
=
k
AirmapClientID
;
settings
.
apiKey
=
AirmapAPIKey
()
;
settings
.
clientID
=
AirmapClientID
()
;
}
bool
authChanged
=
settings
.
apiKey
!=
_shared
.
settings
().
apiKey
||
settings
.
apiKey
.
isEmpty
();
#else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment