]> git.lyx.org Git - lyx.git/commitdiff
Avoid useless double dispatch of cmd to same buffer (if bv and doc_bv are the same).
authorTommaso Cucinotta <tommaso@lyx.org>
Thu, 14 Apr 2011 21:39:47 +0000 (21:39 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Thu, 14 Apr 2011 21:39:47 +0000 (21:39 +0000)
This also fixes #7442.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38383 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 04b3ce99886499fba5def9db07d051fee8b7d00f..c096747e5579147421ec14f58a54aa61b0e65c5d 100644 (file)
@@ -3063,7 +3063,7 @@ void GuiView::dispatchToBufferView(FuncRequest const & cmd, DispatchResult & dr)
 
        // Try with the document BufferView dispatch if any.
        BufferView * doc_bv = documentBufferView();
-       if (doc_bv) {
+       if (doc_bv && doc_bv != bv) {
                doc_bv->dispatch(cmd, dr);
                if (dr.dispatched())
                        return;