diff --git a/src/qtgui/advsearch.ui b/src/qtgui/advsearch.ui
index 552fddd8..924cf720 100644
--- a/src/qtgui/advsearch.ui
+++ b/src/qtgui/advsearch.ui
@@ -74,12 +74,25 @@
7
- Search for files<br>having all of:
+ Search for <br>documents<br>satisfying:
All non blank fields will be combined with AND conjunctions. <br>All fields except "exact phrase" can accept a mix of simple words, and phrases enclosed in double quotes.<br>There are two <em>Any of these</em> fields so you can search for things like: <br><em>(apple OR pear) AND (green OR sour)</em>
+
+
+ conjunctCMB
+
+
+
+ 7
+ 0
+ 8
+ 0
+
+
+
spacer2
diff --git a/src/qtgui/advsearch_w.cpp b/src/qtgui/advsearch_w.cpp
index c458277a..124f25bb 100644
--- a/src/qtgui/advsearch_w.cpp
+++ b/src/qtgui/advsearch_w.cpp
@@ -1,5 +1,5 @@
#ifndef lint
-static char rcsid[] = "@(#$Id: advsearch_w.cpp,v 1.8 2006-11-14 17:41:12 dockes Exp $ (C) 2005 J.F.Dockes";
+static char rcsid[] = "@(#$Id: advsearch_w.cpp,v 1.9 2006-11-14 17:56:40 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@@ -70,6 +70,9 @@ void AdvSearch::init()
this, SLOT(saveFileTypes()));
connect(addClausePB, SIGNAL(clicked()), this, SLOT(addClause()));
+ conjunctCMB->insertItem(tr("All clauses"));
+ conjunctCMB->insertItem(tr("Any clause"));
+
// Create preconfigured clauses
andWords = new SearchClauseW(this);
andWords->tpChange(1);
@@ -214,7 +217,8 @@ void AdvSearch::restrictFtCB_toggled(bool on)
using namespace Rcl;
void AdvSearch::searchPB_clicked()
{
- RefCntr sdata(new SearchData(SCLT_AND));
+ RefCntr sdata(new SearchData(conjunctCMB->currentItem() == 0 ?
+ SCLT_AND : SCLT_OR));
bool hasnotnot = false;
bool hasnot = false;
SearchDataClause *cl;