opt: erase the need to removeTabs

This commit is contained in:
xiaoyifang 2024-11-02 16:45:31 +08:00
parent 275f01c6a8
commit bc1d76fbda

View file

@ -217,8 +217,8 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
// ui.tabs->removeTab( 1 ); // ui.tabs->removeTab( 1 );
// ui.tabs->removeTab( 1 ); // ui.tabs->removeTab( 1 );
orderAndProps->rebuild( this, savedOrder, savedInactive, dictionaries ); orderAndProps->rebuild( savedOrder, savedInactive, dictionaries );
groups->rebuild( this, dictionaries, savedGroups, orderAndProps->getCurrentDictionaryOrder() ); groups->rebuild( dictionaries, savedGroups, orderAndProps->getCurrentDictionaryOrder() );
// ui.tabs->insertTab( 1, orderAndProps, QIcon( ":/icons/book.svg" ), tr( "&Dictionaries" ) ); // ui.tabs->insertTab( 1, orderAndProps, QIcon( ":/icons/book.svg" ), tr( "&Dictionaries" ) );
// ui.tabs->insertTab( 2, groups, QIcon( ":/icons/bookcase.svg" ), tr( "&Groups" ) ); // ui.tabs->insertTab( 2, groups, QIcon( ":/icons/bookcase.svg" ), tr( "&Groups" ) );