mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +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 )
|
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