diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-07 03:26:20 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-07 03:26:20 -0400 |
| commit | f10e91528b96a2588a321ef33fa65c527b816ccf (patch) | |
| tree | 2b3c730c448562138841ef4e617375dab79752f0 /src/nxmaccessmanager.cpp | |
| parent | 96c319325626959b437e1fb72bb0a97c176785a7 (diff) | |
remaining requests can be 0 if not logged in, would show incorrect throttling message
validation dialog could pop even if logged in
typos in comments
Diffstat (limited to 'src/nxmaccessmanager.cpp')
| -rw-r--r-- | src/nxmaccessmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp index 5d8b8b9e..e5f1fffe 100644 --- a/src/nxmaccessmanager.cpp +++ b/src/nxmaccessmanager.cpp @@ -886,11 +886,15 @@ void NXMAccessManager::onValidatorAttemptFinished(const ValidationAttempt& a) bool NXMAccessManager::validated() const { + if (m_validationState == Valid) { + return true; + } + if (m_validator.isActive()) { const_cast<NXMAccessManager*>(this)->startProgress(); } - return (m_validationState == Valid); + return false; } void NXMAccessManager::refuseValidation() |
