]> git.lyx.org Git - features.git/commitdiff
Removing dependency on longOperationCancelled() patch.
authorTommaso Cucinotta <tommaso@lyx.org>
Tue, 8 Feb 2011 09:11:58 +0000 (09:11 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Tue, 8 Feb 2011 09:11:58 +0000 (09:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37562 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 573f8859192daa3121ec1457f5ad7d7c09491f0c..88e325d6f5db37f5e714f5fed369575133bf2145 100644 (file)
@@ -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;
 }