From: Vincent van Ravesteijn Date: Mon, 2 Nov 2009 06:55:40 +0000 (+0000) Subject: Fix bug #6144: Remover RegExp from them Menu and give the user the possibility to... X-Git-Tag: 2.0.0~5242 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f5c3b6219ce2ca74b76bc422b991a79784fcd5d;p=features.git 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 --- diff --git a/lib/ui/stdmenus.inc b/lib/ui/stdmenus.inc index d5e20a5781..693ee1f23d 100644 --- a/lib/ui/stdmenus.inc +++ b/lib/ui/stdmenus.inc @@ -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" diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 6fb9605b9b..cdaa384600 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -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]))) {