From 7f994112b78e32b0aa665062544820c7d49c0712 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 31 May 2023 04:17:16 -0400 Subject: [PATCH] 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 --- src/ui/scanpopup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/scanpopup.cc b/src/ui/scanpopup.cc index f0d7c78a..062fb228 100644 --- a/src/ui/scanpopup.cc +++ b/src/ui/scanpopup.cc @@ -494,7 +494,7 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus ) if( cfg.preferences.scanToMainWindow && !forcePopup ) { // Send translated word to main window istead of show popup - emit sendPhraseToMainWindow( definition->getWord() ); + emit sendPhraseToMainWindow( pendingWord ); return; }