GuiView::dispatch(): Fix cut&paste bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23138 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-22 17:36:40 +00:00
parent 3257f3e066
commit 21489f6a29

View File

@ -1847,6 +1847,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
GuiWorkArea * wa = twa->addWorkArea(*buf, *this); GuiWorkArea * wa = twa->addWorkArea(*buf, *this);
setCurrentWorkArea(wa); setCurrentWorkArea(wa);
} }
break;
case LFUN_CLOSE_TAB_GROUP: case LFUN_CLOSE_TAB_GROUP:
if (TabWorkArea * twa = d.currentTabWorkArea()) { if (TabWorkArea * twa = d.currentTabWorkArea()) {
@ -1858,6 +1859,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
// No more work area, switch to the background widget. // No more work area, switch to the background widget.
d.setBackground(); d.setBackground();
} }
break;
case LFUN_COMPLETION_POPUP: case LFUN_COMPLETION_POPUP:
if (d.current_work_area_) if (d.current_work_area_)