summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-03 02:19:50 (UTC)
committer zautrix <zautrix>2005-02-03 02:19:50 (UTC)
commite0fce8c0f108e054cb6e4e4767affd04b398da45 (patch) (unidiff)
tree17414f89b5042809bab5b738dfcc37b4375b3b6d
parent7e3c508b7ee613c534c2bf0cacf38f96efaef613 (diff)
downloadkdepimpi-e0fce8c0f108e054cb6e4e4767affd04b398da45.zip
kdepimpi-e0fce8c0f108e054cb6e4e4767affd04b398da45.tar.gz
kdepimpi-e0fce8c0f108e054cb6e4e4767affd04b398da45.tar.bz2
fixxx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kpimprefs.cpp6
-rw-r--r--microkde/kdecore/kprefs.cpp1
2 files changed, 3 insertions, 4 deletions
diff --git a/libkdepim/kpimprefs.cpp b/libkdepim/kpimprefs.cpp
index a05e65f..d68ccb6 100644
--- a/libkdepim/kpimprefs.cpp
+++ b/libkdepim/kpimprefs.cpp
@@ -42,9 +42,9 @@ KPimPrefs::KPimPrefs( const QString &name ) :
42 QString hdp= locateLocal("data","korganizer")+"\\\\"; 42 QString hdp= locateLocal("data","korganizer")+"\\\\";
43#else 43#else
44 QString hdp= locateLocal("data","korganizer")+"/"; 44 QString hdp= locateLocal("data","korganizer")+"/";
45#endif 45#endif
46 config()->setGroup("SyncOptions"); 46 setCurrentGroup("SyncOptions");
47 addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" ); 47 addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" );
48 addItemString("PassiveSyncPw",&mPassiveSyncPw,"abc" ); 48 addItemString("PassiveSyncPw",&mPassiveSyncPw,"abc" );
49 addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); 49 addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" );
50 addItemBool("PassiveSyncWithDesktop",&mPassiveSyncWithDesktop,false ); 50 addItemBool("PassiveSyncWithDesktop",&mPassiveSyncWithDesktop,false );
@@ -62,11 +62,9 @@ void KPimPrefs::usrSetDefaults()
62} 62}
63 63
64void KPimPrefs::usrReadConfig() 64void KPimPrefs::usrReadConfig()
65{ 65{
66 kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl; 66 config()->setGroup("General");
67
68 config()->setGroup("General");
69 mCustomCategories = config()->readListEntry("Custom Categories"); 67 mCustomCategories = config()->readListEntry("Custom Categories");
70 if (mCustomCategories.isEmpty()) setCategoryDefaults(); 68 if (mCustomCategories.isEmpty()) setCategoryDefaults();
71} 69}
72 70
diff --git a/microkde/kdecore/kprefs.cpp b/microkde/kdecore/kprefs.cpp
index 71050e7..0220a34 100644
--- a/microkde/kdecore/kprefs.cpp
+++ b/microkde/kdecore/kprefs.cpp
@@ -396,8 +396,9 @@ KPrefs::KPrefs(const QString &configname)
396 if (!configname.isEmpty()) { 396 if (!configname.isEmpty()) {
397 //qDebug("KPrefs::KPrefs %s",configname.latin1() ); 397 //qDebug("KPrefs::KPrefs %s",configname.latin1() );
398 mConfig = new KConfig(locateLocal("config",configname)); 398 mConfig = new KConfig(locateLocal("config",configname));
399 } else { 399 } else {
400 qDebug("KPrefs::Global config ");
400 mConfig = KGlobal::config(); 401 mConfig = KGlobal::config();
401 } 402 }
402 403
403 mItems.setAutoDelete(true); 404 mItems.setAutoDelete(true);