ScanPopup: Normalize whitespaces while translate on clipboard change

This commit is contained in:
Abs62 2020-03-11 22:18:33 +03:00
parent bd6cfd2589
commit 353ea1793e

View file

@ -558,7 +558,7 @@ void ScanPopup::mouseHovered( QString const & str, bool forcePopup )
void ScanPopup::handleInputWord( 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 ) if ( isVisible() && sanitizedStr == inputWord )
{ {