diff --git a/src/ui/editdictionaries.cc b/src/ui/editdictionaries.cc index 103aa3a6..ea832637 100644 --- a/src/ui/editdictionaries.cc +++ b/src/ui/editdictionaries.cc @@ -204,22 +204,11 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups ) // Those hold pointers to dictionaries, we need to free them. groupInstances.clear(); - // groups.clear(); - // orderAndProps.clear(); - loadDictionaries( this, cfg, dictionaries, dictNetMgr ); if ( rebuildGroups ) { - // ui.tabs->removeTab( 1 ); - // ui.tabs->removeTab( 1 ); - 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" ) ); - // connect( groups, &Groups::showDictionaryInfo, this, &EditDictionaries::showDictionaryInfo ); - // connect( orderAndProps, &OrderAndProps::showDictionaryHeadwords, this, &EditDictionaries::showDictionaryHeadwords ); } setUpdatesEnabled( true ); } diff --git a/src/ui/groups.cc b/src/ui/groups.cc index e7f4af6f..8c1fe30a 100644 --- a/src/ui/groups.cc +++ b/src/ui/groups.cc @@ -75,10 +75,7 @@ void Groups::rebuild( vector< sptr< Dictionary::Class > > const & dicts_, ui.dictionaries->setAsSource(); ui.dictionaries->populate( Instances::Group( order, dicts, Config::Group() ).dictionaries, dicts ); - // ui.searchLine->applyTo( ui.dictionaries ); - // Populate groups' widget - ui.groups->populate( groups, dicts, ui.dictionaries->getCurrentDictionaries() ); countChanged(); diff --git a/src/ui/orderandprops.cc b/src/ui/orderandprops.cc index 862d5462..e2681033 100644 --- a/src/ui/orderandprops.cc +++ b/src/ui/orderandprops.cc @@ -146,8 +146,6 @@ void OrderAndProps::rebuild( Config::Group const & dictionaryOrder, ui.dictionaryOrder->populate( order.dictionaries, allDictionaries ); ui.inactiveDictionaries->populate( inactive.dictionaries, allDictionaries ); - // ui.searchLine->applyTo( ui.dictionaryOrder ); - disableDictionaryDescription(); showDictNumbers();