From bc1d76fbda6164bf9684ad5420f8eeb911eb8188 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 bd6d8167..000e934e 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" ) );