]> git.lyx.org Git - lyx.git/commitdiff
Should Fix crash on exit.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 25 Feb 2008 07:32:02 +0000 (07:32 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 25 Feb 2008 07:32:02 +0000 (07:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23218 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 84bb7b85cd1c4ae4b816f702035b6f91e5c95d68..294d502ce2f69551014df3bca5b077144635fdca 100644 (file)
@@ -370,6 +370,8 @@ void LyXFunc::processKeySym(KeySymbol const & keysym, KeyModifier state)
                }
        } else {
                dispatch(func);
+               if (!lyx_view_)
+                       return;
                if (func.action == LFUN_CHAR_DELETE_BACKWARD)
                        // backspace is not a self-insertion. But it
                        // still should not hide the completion popup.