mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
#12423 fix a focus change problem
The search widget triggers a showEvent() in updateTitle() leading to setting the focus to the default push button. The check in updateTitle() for the need to restore the title avoids superfluous show events and avoids the unwanted focus change.
This commit is contained in:
parent
22045e455a
commit
678ab325c0
@ -649,9 +649,10 @@ void GuiSearch::updateTitle()
|
||||
// remove title bar
|
||||
setTitleBarWidget(new QWidget());
|
||||
titleBarWidget()->hide();
|
||||
} else
|
||||
} else if (titleBarWidget()) {
|
||||
// restore title bar
|
||||
setTitleBarWidget(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user