fix: send to mainwindow got empty word

a regression due to Input Phase change: if word is sent to
mainwindow, then definition->getWord() would be empty
This commit is contained in:
shenleban tongying 2023-05-31 04:17:16 -04:00
parent 3ffdbe0079
commit 7f994112b7
No known key found for this signature in database

View file

@ -494,7 +494,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
if( cfg.preferences.scanToMainWindow && !forcePopup ) if( cfg.preferences.scanToMainWindow && !forcePopup )
{ {
// Send translated word to main window istead of show popup // Send translated word to main window istead of show popup
emit sendPhraseToMainWindow( definition->getWord() ); emit sendPhraseToMainWindow( pendingWord );
return; return;
} }