mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 00:13:33 +02:00
clear AddressManager previous lookup on 404
This commit is contained in:
parent
b8b39b962d
commit
3137cd64e1
1 changed files with 4 additions and 0 deletions
|
@ -383,8 +383,12 @@ void AddressManager::handleAPIError(QNetworkReply& errorReply) {
|
|||
qCDebug(networking) << "AddressManager API error -" << errorReply.error() << "-" << errorReply.errorString();
|
||||
|
||||
if (errorReply.error() == QNetworkReply::ContentNotFoundError) {
|
||||
// if this is a lookup that has no result, don't keep re-trying it
|
||||
_previousLookup.clear();
|
||||
|
||||
emit lookupResultIsNotFound();
|
||||
}
|
||||
|
||||
emit lookupResultsFinished();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue