]> git.lyx.org Git - features.git/commitdiff
Dispatch BUFFER_SWITCH only if buffer actually changed (avoids some flickering when...
authorTommaso Cucinotta <tommaso@lyx.org>
Wed, 20 Jan 2010 18:18:04 +0000 (18:18 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Wed, 20 Jan 2010 18:18:04 +0000 (18:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33107 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FindAndReplace.cpp

index 68b3387e9793744a1206560a89919a91d33c6b5c..783c0a19f38451477ac38351ce6cb8eafb613b27 100644 (file)
@@ -361,8 +361,9 @@ void FindAndReplaceWidget::findAndReplaceScope(FindAndReplaceOptions & opt) {
                }
                bv->clearSelection();
        } while (wrap_answer != 1);
-       lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH,
-                                 buf_orig->absFileName()));
+       if (buf != buf_orig)
+               lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH,
+                                         buf_orig->absFileName()));
        bv = view_.documentBufferView();
        bv->cursor() = cur_orig;
 }