another safe guard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19133 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-07-19 07:28:47 +00:00
parent ad91d27c28
commit 25fc4d091a

View File

@ -219,7 +219,7 @@ void LyXFunc::initKeySequences(KeyMap * kb)
void LyXFunc::setLyXView(LyXView * lv)
{
if (lyx_view_ && lyx_view_ != lv)
if (!quitting && lyx_view_ && lyx_view_ != lv)
// save current selection to the selection buffer to allow
// middle-button paste in another window
cap::saveSelection(lyx_view_->view()->cursor());