summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/abconfig.cpp b/core/pim/addressbook/abconfig.cpp
index 703faac..e58fa76 100644
--- a/core/pim/addressbook/abconfig.cpp
+++ b/core/pim/addressbook/abconfig.cpp
@@ -134,51 +134,51 @@ void AbConfig::load()
134 cfg.setGroup("ToolBar"); 134 cfg.setGroup("ToolBar");
135 m_barPos = cfg.readNumEntry( "Position", QMainWindow::Top ); 135 m_barPos = cfg.readNumEntry( "Position", QMainWindow::Top );
136 136
137 m_changed = false; 137 m_changed = false;
138} 138}
139 139
140void AbConfig::save() 140void AbConfig::save()
141{ 141{
142 if ( m_changed ){ 142 if ( m_changed ){
143 Config cfg("AddressBook"); 143 Config cfg("AddressBook");
144 cfg.setGroup("Font"); 144 cfg.setGroup("Font");
145 cfg.writeEntry("fontSize", m_fontSize); 145 cfg.writeEntry("fontSize", m_fontSize);
146 146
147 cfg.setGroup("Search"); 147 cfg.setGroup("Search");
148 cfg.writeEntry("useRegExp", m_useRegExp); 148 cfg.writeEntry("useRegExp", m_useRegExp);
149 cfg.writeEntry("caseSensitive", m_beCaseSensitive); 149 cfg.writeEntry("caseSensitive", m_beCaseSensitive);
150 150
151 cfg.setGroup("Mail"); 151 cfg.setGroup("Mail");
152 cfg.writeEntry( "useQtMail", m_useQtMail ); 152 cfg.writeEntry( "useQtMail", m_useQtMail );
153 cfg.writeEntry( "useOpieMail", m_useOpieMail); 153 cfg.writeEntry( "useOpieMail", m_useOpieMail);
154 154
155 cfg.setGroup("ContactOrder"); 155 cfg.setGroup("ContactOrder");
156 cfg.clearGroup(); 156 cfg.clearGroup();
157 for ( uint i = 0; i < m_ordered.count(); i++ ){ 157 for ( uint i = 0; i < m_ordered.count(); i++ ){
158 cfg.writeEntry( "ContactID_"+QString::number(i), m_ordered[i] ); 158 cfg.writeEntry( "ContactID_"+QString::number(i), m_ordered[i] );
159 } 159 }
160 160
161 cfg.setGroup("ToolBar"); 161 cfg.setGroup("ToolBar");
162 cfg.writeEntry( "Position", m_barPos ); 162 cfg.writeEntry( "Position", m_barPos );
163 163
164 cfg.setGroup("Version"); 164 cfg.setGroup("Version");
165 cfg.writeEntry( "AppName", APPNAME + QString(" V" ) + MAINVERSION + QString(".") + SUBVERSION + QString(".") + PATCHVERSION); 165 cfg.writeEntry( "AppName", APPNAME + QString(" V" ) + MAINVERSION + QString(".") + SUBVERSION + QString(".") + PATCHVERSION);
166 cfg.writeEntry( "Mainversion", MAINVERSION ); 166 cfg.writeEntry( "Mainversion", MAINVERSION );
167 cfg.writeEntry( "SubVersion", SUBVERSION ); 167 cfg.writeEntry( "SubVersion", SUBVERSION );
168 cfg.writeEntry( "PatchVersion", PATCHVERSION ); 168 cfg.writeEntry( "PatchVersion", PATCHVERSION );
169 169
170 } 170 }
171 171
172} 172}
173 173
174void AbConfig::operator= ( const AbConfig& cnf ) 174void AbConfig::operator= ( const AbConfig& cnf )
175{ 175{
176 m_useQtMail = cnf.m_useQtMail; 176 m_useQtMail = cnf.m_useQtMail;
177 m_useOpieMail = cnf.m_useOpieMail; 177 m_useOpieMail = cnf.m_useOpieMail;
178 m_useRegExp = cnf.m_useRegExp; 178 m_useRegExp = cnf.m_useRegExp;
179 m_beCaseSensitive = cnf.m_beCaseSensitive; 179 m_beCaseSensitive = cnf.m_beCaseSensitive;
180 m_fontSize = cnf.m_fontSize; 180 m_fontSize = cnf.m_fontSize;
181 m_ordered = cnf.m_ordered; 181 m_ordered = cnf.m_ordered;
182 182 m_barPos = cnf.m_barPos;
183} 183}
184 184