From f91487fc50150b95fbffc4d20ef16a86778807b4 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 25 Jan 2012 11:19:18 +0100 Subject: [PATCH] added delete-button for host navigation --- source/net/yacy/search/query/RWIProcess.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/net/yacy/search/query/RWIProcess.java b/source/net/yacy/search/query/RWIProcess.java index d72013d63..9d5963f9a 100644 --- a/source/net/yacy/search/query/RWIProcess.java +++ b/source/net/yacy/search/query/RWIProcess.java @@ -325,17 +325,17 @@ public final class RWIProcess extends Thread if (this.query.siteexcludes != null && this.query.siteexcludes.contains(hosthash)) { continue pollloop; } - // no site constraint there; maybe collect host navigation information - if ( nav_hosts && this.query.urlMask_isCatchall ) { - this.hostNavigator.inc(hosthash); - this.hostResolver.put(hosthash, iEntry.urlhash()); - } } else { if ( !hosthash.equals(this.query.sitehash) ) { // filter out all domains that do not match with the site constraint continue pollloop; } } + // collect host navigation information (even if we have only one; this is to provide a switch-off button) + if ( nav_hosts || this.query.urlMask_isCatchall ) { + this.hostNavigator.inc(hosthash); + this.hostResolver.put(hosthash, iEntry.urlhash()); + } // check protocol if ( !this.query.urlMask_isCatchall ) {