mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
ScanPopup: Normalize whitespaces while translate on clipboard change
This commit is contained in:
parent
bd6cfd2589
commit
353ea1793e
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue