]> git.lyx.org Git - features.git/blobdiff - src/lyxfunc.C
My six month cleanup crusade is now paying off: LyX has now multiple windows support!
[features.git] / src / lyxfunc.C
index 027a7828051324948765ac241b652a74c7edfdf6..7fa89e0b6793ef51ea64ac20b05018d47fc38292 100644 (file)
@@ -619,6 +619,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
        case LFUN_LYXRC_APPLY:
        case LFUN_BUFFER_NEXT:
        case LFUN_BUFFER_PREVIOUS:
+       case LFUN_WINDOW_NEW:
                // these are handled in our dispatch()
                break;
 
@@ -1583,6 +1584,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        break;
                }
 
+               case LFUN_WINDOW_NEW:
+                       BOOST_ASSERT(theApp);
+                       LyX::ref().newLyXView();
+
                default: {
                        view()->cursor().dispatch(cmd);
                        updateforce |= view()->cursor().result().update();