From: Tommaso Cucinotta Date: Sat, 13 Nov 2010 11:35:37 +0000 (+0000) Subject: Restore the wrap-around question when no more hits found while searching with Advance... X-Git-Tag: 2.0.0~1869 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=112246ae9f74383f4bed2332a67bcbf0576a728a;p=features.git Restore the wrap-around question when no more hits found while searching with Advanced Search. The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between match found and not found and, in the latter case, pop-up the wrap-around question dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36277 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 37b54160a8..488a998810 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1541,6 +1541,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) iss >> opt; if (findAdv(this, opt)) dr.screenUpdate(Update::Force | Update::FitCursor); + else + dispatched = false; break; }