diff --git a/src/ui/groups.cc b/src/ui/groups.cc index ada9cd36..3601a033 100644 --- a/src/ui/groups.cc +++ b/src/ui/groups.cc @@ -64,12 +64,13 @@ Groups::Groups( QWidget * parent, countChanged(); } -void Groups::rebuild( vector< sptr< Dictionary::Class > > const & dicts_, - Config::Groups const & groups_, - Config::Group const & order ){ - +void Groups::rebuild( vector< sptr< Dictionary::Class > > const & dicts_, + Config::Groups const & groups_, + Config::Group const & order ) +{ + setUpdatesEnabled( false ); - dicts = dicts_; + dicts = dicts_; groups = groups_; ui.dictionaries->setAsSource(); diff --git a/src/ui/groups.hh b/src/ui/groups.hh index 4431afad..ebb2eda6 100644 --- a/src/ui/groups.hh +++ b/src/ui/groups.hh @@ -19,8 +19,8 @@ public: Config::Groups const &, Config::Group const & order ); void rebuild( vector< sptr< Dictionary::Class > > const & dicts_, - Config::Groups const & groups_, - Config::Group const & order ); + Config::Groups const & groups_, + Config::Group const & order ); /// Instructs the dialog to position itself on editing the given group. void editGroup( unsigned id ); diff --git a/src/ui/orderandprops.cc b/src/ui/orderandprops.cc index 2f28a555..e978b73d 100644 --- a/src/ui/orderandprops.cc +++ b/src/ui/orderandprops.cc @@ -134,8 +134,8 @@ OrderAndProps::OrderAndProps( QWidget * parent, } void OrderAndProps::rebuild( Config::Group const & dictionaryOrder, - Config::Group const & inactiveDictionaries, - std::vector< sptr< Dictionary::Class > > const & allDictionaries ) + Config::Group const & inactiveDictionaries, + std::vector< sptr< Dictionary::Class > > const & allDictionaries ) { Instances::Group order( dictionaryOrder, allDictionaries, Config::Group() ); Instances::Group inactive( inactiveDictionaries, allDictionaries, Config::Group() ); diff --git a/src/ui/orderandprops.hh b/src/ui/orderandprops.hh index 8e9bb938..030a0cc6 100644 --- a/src/ui/orderandprops.hh +++ b/src/ui/orderandprops.hh @@ -18,8 +18,8 @@ public: Config::Group const & inactiveDictionaries, std::vector< sptr< Dictionary::Class > > const & allDictionaries ); void rebuild( Config::Group const & dictionaryOrder, - Config::Group const & inactiveDictionaries, - std::vector< sptr< Dictionary::Class > > const & allDictionaries ); + Config::Group const & inactiveDictionaries, + std::vector< sptr< Dictionary::Class > > const & allDictionaries ); Config::Group getCurrentDictionaryOrder() const; Config::Group getCurrentInactiveDictionaries() const;