]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiToolbar.cpp
Please JMarc: Make sure we always pass through LyXFunc::dispatch() even if this is...
[features.git] / src / frontends / qt4 / GuiToolbar.cpp
index c7de616f962fa24b15f9316f177db61e7b3ecdd7..a2e0618710656919927ae7611b0b67ebe37820d3 100644 (file)
@@ -352,7 +352,8 @@ void GuiLayoutBox::selected(const QString & str)
                if (translateIfPossible(itname) == name) {
                        FuncRequest const func(LFUN_LAYOUT, itname,
                                               FuncRequest::TOOLBAR);
-                       owner_.dispatch(func);
+                       theLyXFunc().setLyXView(&owner_);
+                       lyx::dispatch(func);
                        return;
                }
        }