mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
fix: Ctrl+T new tab's tab name is empty
This commit is contained in:
parent
563b1484fa
commit
f0a289fba0
|
@ -1865,6 +1865,7 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
|
||||||
}
|
}
|
||||||
|
|
||||||
int index = ui.tabWidget->indexOf( view );
|
int index = ui.tabWidget->indexOf( view );
|
||||||
|
if( !escaped.isEmpty() )
|
||||||
ui.tabWidget->setTabText( index, escaped );
|
ui.tabWidget->setTabText( index, escaped );
|
||||||
|
|
||||||
if( index == ui.tabWidget->currentIndex() )
|
if( index == ui.tabWidget->currentIndex() )
|
||||||
|
|
Loading…
Reference in a new issue