summaryrefslogtreecommitdiff
path: root/src/nxmaccessmanager.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-03 17:20:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-03 17:20:31 -0400
commit933f460ee61a89ff71038c478de92d6c3760cc9a (patch)
treed4fa53698674b8d418e4c4f19e1dfe5d2ae85c29 /src/nxmaccessmanager.cpp
parentf00314442b9c3c28e846c64da3c3f776e50656de (diff)
added new dialog to enter api key manually
added button in nexus settings to open the dialog added a force flag to apiCheck() to do a check with the new key even if the login was successful before
Diffstat (limited to 'src/nxmaccessmanager.cpp')
-rw-r--r--src/nxmaccessmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp
index 00bb2a91..684a53fa 100644
--- a/src/nxmaccessmanager.cpp
+++ b/src/nxmaccessmanager.cpp
@@ -176,12 +176,16 @@ bool NXMAccessManager::validateWaiting() const
}
-void NXMAccessManager::apiCheck(const QString &apiKey)
+void NXMAccessManager::apiCheck(const QString &apiKey, bool force)
{
if (m_ValidateReply != nullptr) {
return;
}
+ if (force) {
+ m_ValidateState = VALIDATE_NOT_CHECKED;
+ }
+
if (m_ValidateState == VALIDATE_VALID) {
emit validateSuccessful(false);
return;