explain error for C-TAB too many expansions
This commit is contained in:
parent
c808c9437f
commit
6b39149200
@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.7 2006-09-29 07:13:22 dockes Exp $ (C) 2006 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.8 2006-10-24 11:42:13 dockes Exp $ (C) 2006 J.F.Dockes";
|
||||
#endif
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -25,6 +25,7 @@ static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.7 2006-09-29 07:13:22 dockes Ex
|
||||
#include <qlayout.h>
|
||||
#include <qtooltip.h>
|
||||
#include <qwhatsthis.h>
|
||||
#include <qmessagebox.h>
|
||||
|
||||
#include "debuglog.h"
|
||||
#include "guiutils.h"
|
||||
@ -163,10 +164,14 @@ void SSearch::completion()
|
||||
// Query database
|
||||
const int max = 100;
|
||||
list<string> strs = rcldb->completions(s, prefs.queryStemLang.ascii(),max);
|
||||
if (strs.size() == 0 || strs.size() == (unsigned int)max) {
|
||||
if (strs.size() == 0) {
|
||||
QApplication::beep();
|
||||
return;
|
||||
}
|
||||
if (strs.size() == (unsigned int)max) {
|
||||
QMessageBox::warning(0, "Recoll", tr("Too many completions"));
|
||||
return;
|
||||
}
|
||||
|
||||
// If list from db is single word, insert it, else ask user to select
|
||||
QString res;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user