Fix bug #6144: Remover RegExp from them Menu and give the user the possibility to insert an empty RegExp in the Search field by choosing User defined.. in the Match.. combobox (what use does this option have ?).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31825 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-02 06:55:40 +00:00
parent 3b409626f0
commit 8f5c3b6219
2 changed files with 1 additions and 2 deletions

View File

@ -362,7 +362,6 @@ Menuset
Item "TeX Code|X" "ert-insert"
Item "Program Listing[[Menu]]" "listing-insert"
Item "Date" "date-insert"
OptItem "Regular Expression" "regexp-mode"
End
Menu "insert_special"

View File

@ -204,7 +204,7 @@ void FindAndReplaceWidget::findAndReplace(bool backwards, bool replace)
void FindAndReplaceWidget::on_regexpInsertCombo_currentIndexChanged(int index)
{
static char const * regexps[] = {
".*", ".+", "[a-z]+", "[0-9]+"
".*", ".+", "[a-z]+", "[0-9]+", ""
};
LYXERR(Debug::FIND, "Index: " << index);
if (index >= 1 && index < 1 + int(sizeof(regexps)/sizeof(regexps[0]))) {