From: Pavel Sanda Date: Fri, 26 Sep 2008 10:07:10 +0000 (+0000) Subject: Find-next fallback to search dialog when no string was entered before. X-Git-Tag: 1.6.10~3313 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=42693547f790b86efaf359b92efcc8bef5ef351e;p=features.git 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 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 054fadbbab..ecb513f81e 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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