-rw-r--r-- | libkdepim/kpimprefs.cpp | 6 |
1 files changed, 2 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 | |||
@@ -30,55 +30,53 @@ $Id$ | |||
30 | 30 | ||
31 | #include <kglobal.h> | 31 | #include <kglobal.h> |
32 | #include <kconfig.h> | 32 | #include <kconfig.h> |
33 | #include <klocale.h> | 33 | #include <klocale.h> |
34 | #include <kdebug.h> | 34 | #include <kdebug.h> |
35 | 35 | ||
36 | #include "kpimprefs.h" | 36 | #include "kpimprefs.h" |
37 | 37 | ||
38 | KPimPrefs::KPimPrefs( const QString &name ) : | 38 | KPimPrefs::KPimPrefs( const QString &name ) : |
39 | KPrefs( name ) | 39 | KPrefs( name ) |
40 | { | 40 | { |
41 | #ifdef _WIN32_ | 41 | #ifdef _WIN32_ |
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 ); |
51 | addItemBool("PassiveSyncAutoStart",&mPassiveSyncAutoStart,false ); | 51 | addItemBool("PassiveSyncAutoStart",&mPassiveSyncAutoStart,false ); |
52 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); | 52 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); |
53 | } | 53 | } |
54 | 54 | ||
55 | KPimPrefs::~KPimPrefs() | 55 | KPimPrefs::~KPimPrefs() |
56 | { | 56 | { |
57 | } | 57 | } |
58 | 58 | ||
59 | void KPimPrefs::usrSetDefaults() | 59 | void KPimPrefs::usrSetDefaults() |
60 | { | 60 | { |
61 | setCategoryDefaults(); | 61 | setCategoryDefaults(); |
62 | } | 62 | } |
63 | 63 | ||
64 | void KPimPrefs::usrReadConfig() | 64 | void 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 | ||
73 | 71 | ||
74 | void KPimPrefs::usrWriteConfig() | 72 | void KPimPrefs::usrWriteConfig() |
75 | { | 73 | { |
76 | config()->setGroup("General"); | 74 | config()->setGroup("General"); |
77 | config()->writeEntry("Custom Categories",mCustomCategories); | 75 | config()->writeEntry("Custom Categories",mCustomCategories); |
78 | } | 76 | } |
79 | 77 | ||
80 | void KPimPrefs::setCategoryDefaults() | 78 | void KPimPrefs::setCategoryDefaults() |
81 | { | 79 | { |
82 | // empty implementation | 80 | // empty implementation |
83 | } | 81 | } |
84 | 82 | ||