Remove redundant spaces while translating clipboard

This commit is contained in:
Abs62 2012-10-01 16:43:32 +04:00
parent 58484cf70c
commit 8e4b38400a

View file

@ -268,7 +268,7 @@ void ScanPopup::translateWordFromClipboard(QClipboard::Mode m)
void ScanPopup::translateWord( QString const & word ) void ScanPopup::translateWord( QString const & word )
{ {
QString str = pendingInputWord = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( word ) ) ); QString str = pendingInputWord = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( word ) ) ).simplified();
if ( !str.size() ) if ( !str.size() )
return; // Nothing there return; // Nothing there