From: Tommaso Cucinotta Date: Tue, 8 Feb 2011 09:11:58 +0000 (+0000) Subject: Removing dependency on longOperationCancelled() patch. X-Git-Tag: 2.0.0~825 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc4abad361fba3ea280d781c67ec00a3a95917cc;p=features.git Removing dependency on longOperationCancelled() patch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37562 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 573f885919..88e325d6f5 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1095,10 +1095,10 @@ int findForwardAdv(DocIterator & cur, MatchStringAdv & match) { if (!cur) return 0; - while (!theApp()->longOperationCancelled() && cur) { + while (cur) { LYXERR(Debug::FIND, "findForwardAdv() cur: " << cur); if (match(cur, -1, false)) { - for (; !theApp()->longOperationCancelled() && cur; cur.forwardPos()) { + for (; cur; cur.forwardPos()) { LYXERR(Debug::FIND, "Advancing cur: " << cur); if (match(cur)) { // Sometimes in finalize we understand it wasn't a match @@ -1193,7 +1193,7 @@ int findBackwardsAdv(DocIterator & cur, MatchStringAdv & match) { else cur.backwardPos(); pit_changed = true; - } while (!theApp()->longOperationCancelled()); + } while (true); return 0; }