#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:
Stephan Witt 2022-01-09 22:33:43 +01:00
parent 22045e455a
commit 678ab325c0

View File

@ -649,10 +649,11 @@ void GuiSearch::updateTitle()
// remove title bar
setTitleBarWidget(new QWidget());
titleBarWidget()->hide();
} else
} else if (titleBarWidget()) {
// restore title bar
setTitleBarWidget(nullptr);
}
}
void GuiSearch::updateSize()