mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Fixed #6335.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32949 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b13ec49005
commit
bf6a32bab4
@ -585,11 +585,20 @@ TocModels & GuiView::tocModels()
|
||||
void GuiView::setFocus()
|
||||
{
|
||||
LYXERR(Debug::DEBUG, "GuiView::setFocus()" << this);
|
||||
QMainWindow::setFocus();
|
||||
}
|
||||
|
||||
|
||||
void GuiView::focusInEvent(QFocusEvent * e)
|
||||
{
|
||||
LYXERR(Debug::DEBUG, "GuiView::focusInEvent()" << this);
|
||||
QMainWindow::focusInEvent(e);
|
||||
// Make sure LyXFunc points to the correct view.
|
||||
guiApp->setCurrentView(this);
|
||||
QMainWindow::setFocus();
|
||||
if (d.current_work_area_)
|
||||
d.current_work_area_->setFocus();
|
||||
if (currentMainWorkArea())
|
||||
currentMainWorkArea()->setFocus();
|
||||
else if (currentWorkArea())
|
||||
currentWorkArea()->setFocus();
|
||||
else
|
||||
d.bg_widget_->setFocus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user