From db4c352d6c85f7c14d6fcf4655c67d1a6f0f1ddb Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sat, 2 Nov 2024 16:45:31 +0800 Subject: [PATCH] opt: erase the need to removeTabs --- src/ui/editdictionaries.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/editdictionaries.cc b/src/ui/editdictionaries.cc index 9675e031..77eff3d8 100644 --- a/src/ui/editdictionaries.cc +++ b/src/ui/editdictionaries.cc @@ -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" ) );