From 353ea1793ed430193ce586e57c560867e4a2a55b Mon Sep 17 00:00:00 2001 From: Abs62 Date: Wed, 11 Mar 2020 22:18:33 +0300 Subject: [PATCH] ScanPopup: Normalize whitespaces while translate on clipboard change --- scanpopup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpopup.cc b/scanpopup.cc index a968fa40..b29b1c75 100644 --- a/scanpopup.cc +++ b/scanpopup.cc @@ -558,7 +558,7 @@ void ScanPopup::mouseHovered( QString const & str, bool forcePopup ) void ScanPopup::handleInputWord( QString const & str, bool forcePopup ) { - QString sanitizedStr = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( str ) ) ); + QString sanitizedStr = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( str ) ) ).simplified(); if ( isVisible() && sanitizedStr == inputWord ) {