summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-25 18:42:56 (GMT)
commit238c63a16c820818ba71ae256f3f50eed2a94cf2 (patch)
treeac946941d432585f18f08ee563fec2f48faae1de /src/code.l
parentf630007a569f8342ada7b2ecf06692353ddbce3c (diff)
downloadDoxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.zip
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.tar.gz
Doxygen-238c63a16c820818ba71ae256f3f50eed2a94cf2.tar.bz2
Release-1.5.5-20080325
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index 20a5fa4..7a44298 100644
--- a/src/code.l
+++ b/src/code.l
@@ -410,7 +410,8 @@ static void popScope()
static void setCurrentDoc(const QCString &name,const QCString &base,const QCString &anchor="")
{
- static bool searchEngineEnabled=Config_getBool("SEARCHENGINE");
+ static bool searchEngineEnabled=Config_getBool("SEARCHENGINE") &&
+ Config_getBool("SOURCE_BROWSER");
if (searchEngineEnabled)
{
Doxygen::searchIndex->setCurrentDoc(name,base,anchor);
@@ -419,7 +420,8 @@ static void setCurrentDoc(const QCString &name,const QCString &base,const QCStri
static void addToSearchIndex(const char *text)
{
- static bool searchEngineEnabled=Config_getBool("SEARCHENGINE");
+ static bool searchEngineEnabled=Config_getBool("SEARCHENGINE") &&
+ Config_getBool("SOURCE_BROWSER");
if (searchEngineEnabled)
{
Doxygen::searchIndex->addWord(text,FALSE);