Find-next fallback to search dialog when no string was entered before.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26573 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-09-26 10:07:10 +00:00
parent e63a6bc89a
commit 42693547f7

View File

@ -1188,6 +1188,10 @@ bool BufferView::dispatch(FuncRequest const & cmd)
FuncRequest req = cmd;
if (cmd.argument().empty() && !d->search_request_cache_.argument().empty())
req = d->search_request_cache_;
if (req.argument().empty()) {
theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace"));
break;
}
if (find(this, req))
showCursor();
else