summaryrefslogtreecommitdiff
path: root/src/apiuseraccount.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-07 03:26:20 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-07 03:26:20 -0400
commitf10e91528b96a2588a321ef33fa65c527b816ccf (patch)
tree2b3c730c448562138841ef4e617375dab79752f0 /src/apiuseraccount.cpp
parent96c319325626959b437e1fb72bb0a97c176785a7 (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/apiuseraccount.cpp')
-rw-r--r--src/apiuseraccount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apiuseraccount.cpp b/src/apiuseraccount.cpp
index 35a868d5..976dd488 100644
--- a/src/apiuseraccount.cpp
+++ b/src/apiuseraccount.cpp
@@ -96,5 +96,5 @@ bool APIUserAccount::shouldThrottle() const
bool APIUserAccount::exhausted() const
{
- return (remainingRequests() <= 0);
+ return isValid() && (remainingRequests() <= 0);
}