From e6a2c4081b6dc4987f1f10cef0efe4ce65d5637b Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Wed, 7 Jun 2023 09:34:14 +0300 Subject: [PATCH] fix global translateLineText not being updated when translate line changes --- src/ui/mainwindow.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index 5501a2db..5b964d1d 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -2347,10 +2347,13 @@ void MainWindow::setInputLineText( QString text, WildcardPolicy wildcardPolicy, if ( wildcardPolicy == WildcardPolicy::EscapeWildcards ) text = Folding::escapeWildcardSymbols( text ); - if ( popupAction == NoPopupChange || cfg.preferences.searchInDock ) + if ( popupAction == NoPopupChange || cfg.preferences.searchInDock ) { translateLine->setText( text ); - else + } + else { translateBox->setText( text, popupAction == EnablePopup ); + } + GlobalBroadcaster::instance()->translateLineText = text; } void MainWindow::handleEsc()