Merge branch 'goldendict:master' into staged

This commit is contained in:
xiaoyifang 2022-07-30 07:35:30 +08:00 committed by GitHub
commit f8b3c9a6eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1853,8 +1853,11 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
escaped.append( (ushort)0x202C ); // PDF, POP DIRECTIONAL FORMATTING
}
ui.tabWidget->setTabText( ui.tabWidget->indexOf( view ), escaped );
int index = ui.tabWidget->indexOf( view );
ui.tabWidget->setTabText( index, escaped );
if( index == ui.tabWidget->currentIndex() )
{
// Set icon for "Add to Favorites" action
if( isWordPresentedInFavorites( title, cfg.lastMainGroupId ) )
{
@ -1869,6 +1872,7 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
updateWindowTitle();
}
}
void MainWindow::iconChanged( ArticleView * view, QIcon const & icon )
{