From dbdfe3122fcea4da5462c26bb14ac289dbd39a4d Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 7 Jun 2013 08:29:19 +0200 Subject: [PATCH] dont show snippets link in history links (makes no sense as there are no query terms...) --- src/query/docseqhist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/query/docseqhist.cpp b/src/query/docseqhist.cpp index b32f369f..264b36f0 100644 --- a/src/query/docseqhist.cpp +++ b/src/query/docseqhist.cpp @@ -144,6 +144,11 @@ bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh) doc.url = "UNKNOWN"; doc.ipath = ""; } + + // Ensure the snippets link won't be shown as it does not make + // sense (no query terms...) + doc.haspages = 0; + return ret; }