remove unneeded stuff.

This commit is contained in:
Wayne Chen 2018-11-07 16:44:50 -08:00 committed by GitHub
parent f683a51ef5
commit c0b13c06d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ void AddressManager::storeCurrentAddress() {
if (isInErrorState) {
// save the last address visited before the problem url.
currentAddressHandle.set(lastAddress());
} else {
} else {
currentAddressHandle.set(url);
}
} else {
@ -824,7 +824,6 @@ bool AddressManager::setDomainInfo(const QUrl& domainURL, LookupTrigger trigger)
bool emitHostChanged { false };
// Check if domain handler is in error state. always emit host changed if true.
bool isInErrorState = DependencyManager::get<NodeList>()->getDomainHandler().isInErrorState();
// Check if domain handler is in login screen state. always emit host changed if true.
if (domainURL != _domainURL || isInErrorState) {
addCurrentAddressToHistory(trigger);