mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 15:18:45 +00:00
Fixes this issue:
with this sequence: -) C-N (new doc) -) C-S-f (open advanced find dialog) -) Alt-Tab (switch to other application) -) Alt-Tab (switch back to LyX) the focus now is on the main document WA. I think it should be back on the Find WA where I was before the Alt-Tab. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37334 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c005af6749
commit
b39f4a1de7
@ -745,10 +745,10 @@ void GuiView::focusInEvent(QFocusEvent * e)
|
|||||||
QMainWindow::focusInEvent(e);
|
QMainWindow::focusInEvent(e);
|
||||||
// Make sure guiApp points to the correct view.
|
// Make sure guiApp points to the correct view.
|
||||||
guiApp->setCurrentView(this);
|
guiApp->setCurrentView(this);
|
||||||
if (currentMainWorkArea())
|
if (currentWorkArea())
|
||||||
currentMainWorkArea()->setFocus();
|
|
||||||
else if (currentWorkArea())
|
|
||||||
currentWorkArea()->setFocus();
|
currentWorkArea()->setFocus();
|
||||||
|
else if (currentMainWorkArea())
|
||||||
|
currentMainWorkArea()->setFocus();
|
||||||
else
|
else
|
||||||
d.bg_widget_->setFocus();
|
d.bg_widget_->setFocus();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user