mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Remove redundant spaces while translating clipboard
This commit is contained in:
parent
58484cf70c
commit
8e4b38400a
|
@ -268,7 +268,7 @@ void ScanPopup::translateWordFromClipboard(QClipboard::Mode m)
|
|||
|
||||
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() )
|
||||
return; // Nothing there
|
||||
|
|
Loading…
Reference in a new issue