mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
fix global translateLineText not being updated when translate line changes
This commit is contained in:
parent
eccc3eaf0f
commit
e6a2c4081b
|
@ -2347,10 +2347,13 @@ void MainWindow::setInputLineText( QString text, WildcardPolicy wildcardPolicy,
|
||||||
if ( wildcardPolicy == WildcardPolicy::EscapeWildcards )
|
if ( wildcardPolicy == WildcardPolicy::EscapeWildcards )
|
||||||
text = Folding::escapeWildcardSymbols( text );
|
text = Folding::escapeWildcardSymbols( text );
|
||||||
|
|
||||||
if ( popupAction == NoPopupChange || cfg.preferences.searchInDock )
|
if ( popupAction == NoPopupChange || cfg.preferences.searchInDock ) {
|
||||||
translateLine->setText( text );
|
translateLine->setText( text );
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
translateBox->setText( text, popupAction == EnablePopup );
|
translateBox->setText( text, popupAction == EnablePopup );
|
||||||
|
}
|
||||||
|
GlobalBroadcaster::instance()->translateLineText = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::handleEsc()
|
void MainWindow::handleEsc()
|
||||||
|
|
Loading…
Reference in a new issue