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,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() )