author | zecke <zecke> | 2004-05-17 21:21:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-05-17 21:21:20 (UTC) |
commit | e0d8fdf2bcf61f8b6793ee757de35b985aef1b8d (patch) (side-by-side diff) | |
tree | fe4d56b46af10508430eda398ec7d57cc4ab6a9e | |
parent | 34f42c17874e84239fc2bff241cecee7ec78d38d (diff) | |
download | opie-e0d8fdf2bcf61f8b6793ee757de35b985aef1b8d.zip opie-e0d8fdf2bcf61f8b6793ee757de35b985aef1b8d.tar.gz opie-e0d8fdf2bcf61f8b6793ee757de35b985aef1b8d.tar.bz2 |
use the config group saver right?!
-rw-r--r-- | libopie2/opiecore/okeyconfigmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiecore/okeyconfigmanager.cpp b/libopie2/opiecore/okeyconfigmanager.cpp index ad0f7f7..ccb96cc 100644 --- a/libopie2/opiecore/okeyconfigmanager.cpp +++ b/libopie2/opiecore/okeyconfigmanager.cpp @@ -500,17 +500,17 @@ OKeyConfigManager::~OKeyConfigManager() { * Load the Configuration from the OConfig * If a Key is restricted but was in the config we will * make it be the empty key paur * We will change the group but restore to the previous. * * @see OKeyPair::emptyKey */ void OKeyConfigManager::load() { - Opie::Core::OConfigGroupSaver( m_conf, m_group ); + Opie::Core::OConfigGroupSaver grp( m_conf, m_group ); /* * Read each item */ int key, mod; for( OKeyConfigItem::List::Iterator it = m_keys.begin(); it != m_keys.end(); ++it ) { key = m_conf->readNumEntry( (*it).configKey()+"key", (*it).defaultKeyPair().keycode() ); @@ -527,17 +527,17 @@ void OKeyConfigManager::load() { } /** * We will save the current configuration * to the OConfig. We will change the group but restore * to the previous */ void OKeyConfigManager::save() { - Opie::Core::OConfigGroupSaver( m_conf, m_group ); + Opie::Core::OConfigGroupSaver grp( m_conf, m_group ); /* * Write each item */ for( OKeyConfigItem::List::Iterator it = m_keys.begin();it != m_keys.end(); ++it ) { /* skip empty items */ if ( (*it).isEmpty() ) continue; |