]> git.lyx.org Git - features.git/commitdiff
Find-next fallback to search dialog when no string was entered before.
authorPavel Sanda <sanda@lyx.org>
Fri, 26 Sep 2008 10:07:10 +0000 (10:07 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 26 Sep 2008 10:07:10 +0000 (10:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26573 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 054fadbbabab473aa0f3fbe0db7aca753e1b8f13..ecb513f81e746e527666f12ea18f6dc418850ac1 100644 (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