fix: Ctrl+T new tab's tab name is empty

This commit is contained in:
Xiao YiFang 2022-08-21 14:10:42 +08:00
parent 563b1484fa
commit f0a289fba0

View file

@ -1865,7 +1865,8 @@ void MainWindow::titleChanged( ArticleView * view, QString const & title )
}
int index = ui.tabWidget->indexOf( view );
ui.tabWidget->setTabText( index, escaped );
if( !escaped.isEmpty() )
ui.tabWidget->setTabText( index, escaped );
if( index == ui.tabWidget->currentIndex() )
{