]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InsertTableWidget.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / InsertTableWidget.cpp
index c385d02a8d61dadd70b05b3398682ab63395f68b..4ff38099ede2c1284e2dc14b077038534ea2fa2a 100644 (file)
@@ -108,7 +108,8 @@ void InsertTableWidget::mouseReleaseEvent(QMouseEvent * /*event*/)
 {
        if (underMouse_) {
                QString const data = QString("%1 %2").arg(bottom_).arg(right_);
-               lyxView_.dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data)));
+               theLyXFunc().setLyXView(&lyxView_);
+               lyx::dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data)));
        }
        // emit signal
        visible(false);