mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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
|
// remove title bar
|
||||||
setTitleBarWidget(new QWidget());
|
setTitleBarWidget(new QWidget());
|
||||||
titleBarWidget()->hide();
|
titleBarWidget()->hide();
|
||||||
} else
|
} else if (titleBarWidget()) {
|
||||||
// restore title bar
|
// restore title bar
|
||||||
setTitleBarWidget(nullptr);
|
setTitleBarWidget(nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user