a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.5 2006-09-13 13:53:35 dockes Exp $ (C) 2006 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.6 2006-09-13 15:31:06 dockes Exp $ (C) 2006 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
70
    return;
70
    return;
71
    Rcl::AdvSearchData sdata;
71
    Rcl::AdvSearchData sdata;
72
    QCString u8 =  queryText->currentText().utf8();
72
    QCString u8 =  queryText->currentText().utf8();
73
    switch (searchTypCMB->currentItem()) {
73
    switch (searchTypCMB->currentItem()) {
74
    case 0:
74
    case 0:
75
    default:
75
    default: {
76
  QString comp = queryText->currentText();
77
  // If this is an or and we're set for autophrase and there are
78
  // no quotes in the query, add a phrase search
79
  if (prefs.ssearchAutoPhrase && comp.find('"', 0) == -1) {
80
      comp += QString::fromAscii(" \"") + comp + 
81
      QString::fromAscii("\"");
82
      u8 = comp.utf8();
83
  }
76
    sdata.orwords = u8;
84
    sdata.orwords = u8;
85
    }
77
    break;
86
    break;
78
    case 1:
87
    case 1:
79
    sdata.allwords = u8;
88
    sdata.allwords = u8;
80
    break;
89
    break;
81
    case 2:
90
    case 2: