diff --git a/dictheadwords.cc b/dictheadwords.cc index cbd0b50d..e25d64bc 100644 --- a/dictheadwords.cc +++ b/dictheadwords.cc @@ -201,7 +201,11 @@ void DictHeadwords::itemClicked( const QModelIndex & index ) { QVariant value = proxy->data( index, Qt::DisplayRole ); if ( value.canConvert< QString >() ) - emit headwordSelected( value.toString() ); + { + QString headword = value.toString(); + headword.replace( QRegExp( "([\\*\\?\\[\\]])" ), "\\\\1" ); + emit headwordSelected( headword ); + } } void DictHeadwords::autoApplyStateChanged( int state )