mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
Merge branch 'goldendict:master' into staged
This commit is contained in:
commit
f8b3c9a6eb
|
@ -1853,8 +1853,11 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
|
||||||
escaped.append( (ushort)0x202C ); // PDF, POP DIRECTIONAL FORMATTING
|
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
|
// Set icon for "Add to Favorites" action
|
||||||
if( isWordPresentedInFavorites( title, cfg.lastMainGroupId ) )
|
if( isWordPresentedInFavorites( title, cfg.lastMainGroupId ) )
|
||||||
{
|
{
|
||||||
|
@ -1869,6 +1872,7 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
|
||||||
|
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::iconChanged( ArticleView * view, QIcon const & icon )
|
void MainWindow::iconChanged( ArticleView * view, QIcon const & icon )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue