mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Merge pull request #826 from Ajatt-Tools/fix
fix global translateLineText not being updated
This commit is contained in:
commit
3276d2687c
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue