From 49f0b87de320d26f6593a997b6c67d16db7a66b6 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Thu, 31 Oct 2024 10:32:59 +0800 Subject: [PATCH] opt: backup group info --- src/ui/editdictionaries.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/editdictionaries.cc b/src/ui/editdictionaries.cc index abbe6e556..a4727a1ca 100644 --- a/src/ui/editdictionaries.cc +++ b/src/ui/editdictionaries.cc @@ -237,19 +237,19 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups ) const bool noGroupEdits = ( origCfg.groups == savedGroups ); if ( !noGroupEdits ) { - Instances::updateNames( savedGroups, dictionaries ); + Instances::updateNames( origCfg.groups, dictionaries ); } const bool noOrderEdits = ( origCfg.dictionaryOrder == savedOrder ); if ( !noOrderEdits ) { - Instances::updateNames( savedOrder, dictionaries ); + Instances::updateNames( origCfg.dictionaryOrder, dictionaries ); } const bool noInactiveEdits = ( origCfg.inactiveDictionaries == savedInactive ); if ( !noInactiveEdits ) { - Instances::updateNames( savedInactive, dictionaries ); + Instances::updateNames( origCfg.inactiveDictionaries, dictionaries ); } } ui.tabs->setUpdatesEnabled( true );