opt: erase the need to removeTabs

This commit is contained in:
xiaoyifang 2024-11-02 16:45:31 +08:00 committed by xiaoyifang
parent 7c32cad65a
commit db4c352d6c

View file

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