mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix add headwords to Favorites for RTL languages
This commit is contained in:
parent
2bf4c51fd5
commit
604ebc2c6b
|
@ -4444,6 +4444,14 @@ void MainWindow::addCurrentTabToFavorites()
|
|||
|
||||
QString headword = ui.tabWidget->tabText( ui.tabWidget->currentIndex() );
|
||||
|
||||
// Reset table header to original headword
|
||||
|
||||
headword.replace( "&&", "&" );
|
||||
if( headword.startsWith( QChar( 0x202E ) ) )
|
||||
headword = headword.mid( 1 );
|
||||
if( headword.endsWith( QChar( 0x202C ) ) )
|
||||
headword.chop( 1 );
|
||||
|
||||
ui.favoritesPaneWidget->addHeadword( folder, headword );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue