mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix global translateLineText not being updated when translate line changes
This commit is contained in:
parent
eccc3eaf0f
commit
e6a2c4081b
|
@ -2347,11 +2347,14 @@ 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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue