summaryrefslogtreecommitdiff
authorzecke <zecke>2004-12-20 22:02:47 (UTC)
committer zecke <zecke>2004-12-20 22:02:47 (UTC)
commit4a9d317adb576fed2164638a1d4d15c75eebfd6b (patch) (unidiff)
treec4634ae780964cb96edae64a3fd07a641c46e427
parent086e832c16265a086e455ead0e5a64f61e2078e7 (diff)
downloadopie-4a9d317adb576fed2164638a1d4d15c75eebfd6b.zip
opie-4a9d317adb576fed2164638a1d4d15c75eebfd6b.tar.gz
opie-4a9d317adb576fed2164638a1d4d15c75eebfd6b.tar.bz2
Keep only 'local' Config instances to avoid some older
instance reverting changes! (weakness of Config class)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/security/multiauthconfig.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/core/settings/security/multiauthconfig.cpp b/core/settings/security/multiauthconfig.cpp
index 45d691b..7a5f7b9 100644
--- a/core/settings/security/multiauthconfig.cpp
+++ b/core/settings/security/multiauthconfig.cpp
@@ -159,3 +159,3 @@ static void test_and_start() {
159 QStringList list = dir.entryList(); 159 QStringList list = dir.entryList();
160 160
161 m_pluginsInstalled = ! list.isEmpty(); 161 m_pluginsInstalled = ! list.isEmpty();
@@ -277,4 +277,2 @@ MultiauthConfig::~MultiauthConfig()
277void MultiauthConfig::writeConfigs() { 277void MultiauthConfig::writeConfigs() {
278 writeConfig();
279
280 MultiauthConfigWidget* confWidget = 0; 278 MultiauthConfigWidget* confWidget = 0;
@@ -283,2 +281,4 @@ void MultiauthConfig::writeConfigs() {
283 confWidget->writeConfig(); 281 confWidget->writeConfig();
282
283 writeConfig();
284} 284}
@@ -401,3 +401,3 @@ void MultiauthConfig::writeConfig()
401{ 401{
402 Config* pcfg = new Config("Security"); 402 Config pcfg("Security");
403 403
@@ -405,3 +405,3 @@ void MultiauthConfig::writeConfig()
405 { 405 {
406 pcfg->setGroup( "Plugins" ); 406 pcfg.setGroup( "Plugins" );
407 QStringList exclude; 407 QStringList exclude;
@@ -426,12 +426,12 @@ void MultiauthConfig::writeConfig()
426 } 426 }
427 pcfg->writeEntry( "ExcludePlugins", exclude, ',' ); 427 pcfg.writeEntry( "ExcludePlugins", exclude, ',' );
428 pcfg->writeEntry( "IncludePlugins", include, ',' ); 428 pcfg.writeEntry( "IncludePlugins", include, ',' );
429 pcfg->writeEntry( "AllPlugins", allPlugins, ',' ); 429 pcfg.writeEntry( "AllPlugins", allPlugins, ',' );
430 430
431 pcfg->setGroup( "Misc" ); 431 pcfg.setGroup( "Misc" );
432 pcfg->writeEntry( "onStart", m_generalConfig->m_onStart->isChecked() ); 432 pcfg.writeEntry( "onStart", m_generalConfig->m_onStart->isChecked() );
433 pcfg->writeEntry( "onResume", m_generalConfig->m_onResume->isChecked() ); 433 pcfg.writeEntry( "onResume", m_generalConfig->m_onResume->isChecked() );
434 pcfg->writeEntry( "nbSuccessMin", m_generalConfig->m_nbSuccessMin->text() ); 434 pcfg.writeEntry( "nbSuccessMin", m_generalConfig->m_nbSuccessMin->text() );
435 pcfg->writeEntry( "noProtectConfig", m_generalConfig->m_noProtectConfig->isChecked() ); 435 pcfg.writeEntry( "noProtectConfig", m_generalConfig->m_noProtectConfig->isChecked() );
436 pcfg->writeEntry( "explanScreens", m_generalConfig->m_explanScreens->isChecked() ); 436 pcfg.writeEntry( "explanScreens", m_generalConfig->m_explanScreens->isChecked() );
437 } 437 }
@@ -440,3 +440,3 @@ void MultiauthConfig::writeConfig()
440 440
441 pcfg->setGroup("Sync"); 441 pcfg.setGroup("Sync");
442 int auth_peer=0; 442 int auth_peer=0;
@@ -447,4 +447,4 @@ void MultiauthConfig::writeConfig()
447 //this is the *selected* (active) net range 447 //this is the *selected* (active) net range
448 pcfg->writeEntry("auth_peer",auth_peer); 448 pcfg.writeEntry("auth_peer",auth_peer);
449 pcfg->writeEntry("auth_peer_bits",auth_peer_bits); 449 pcfg.writeEntry("auth_peer_bits",auth_peer_bits);
450 450
@@ -455,5 +455,5 @@ void MultiauthConfig::writeConfig()
455 if ( i < m_syncWidget->syncnet->count() ) 455 if ( i < m_syncWidget->syncnet->count() )
456 pcfg->writeEntry(target, m_syncWidget->syncnet->text(i)); 456 pcfg.writeEntry(target, m_syncWidget->syncnet->text(i));
457 else // no more entry in the syncnet list -> we clear the line 457 else // no more entry in the syncnet list -> we clear the line
458 pcfg->writeEntry(target, ""); 458 pcfg.writeEntry(target, "");
459 } 459 }
@@ -476,11 +476,11 @@ void MultiauthConfig::writeConfig()
476 } 476 }
477 pcfg->setGroup("SyncMode"); 477 pcfg.setGroup("SyncMode");
478 pcfg->writeEntry( "Mode", value ); 478 pcfg.writeEntry( "Mode", value );
479 479
480 /* 480 /*
481 pcfg->setGroup("Remote"); 481 pcfg.setGroup("Remote");
482 if ( telnetAvailable() ) 482 if ( telnetAvailable() )
483 pcfg->writeEntry("allow_telnet",telnet->isChecked()); 483 pcfg.writeEntry("allow_telnet",telnet->isChecked());
484 if ( sshAvailable() ) 484 if ( sshAvailable() )
485 pcfg->writeEntry("allow_ssh",ssh->isChecked()); 485 pcfg.writeEntry("allow_ssh",ssh->isChecked());
486 // ### write ssh/telnet sys config files 486 // ### write ssh/telnet sys config files
@@ -489,3 +489,3 @@ void MultiauthConfig::writeConfig()
489 //release the Config handler 489 //release the Config handler
490 delete pcfg; 490 pcfg.write();
491 491