Terminal: Fix selection

A missing call to the base class meant that when starting to search with
a selection set, the selected text was not copied into the search field.

Change-Id: I1f2f1054a687d8b33b6733cc2a96e85ffa7f7816
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-07-31 09:30:22 +02:00
parent d56a2a233c
commit 385ff37f88

View File

@@ -410,7 +410,7 @@ void TerminalWidget::restart(const OpenTerminalParameters &openParameters)
void TerminalWidget::selectionChanged(const std::optional<Selection> &newSelection) void TerminalWidget::selectionChanged(const std::optional<Selection> &newSelection)
{ {
Q_UNUSED(newSelection); SearchableTerminal::selectionChanged(newSelection);
updateCopyState(); updateCopyState();