author | zautrix <zautrix> | 2005-01-17 12:18:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-17 12:18:59 (UTC) |
commit | 6b166ece0a576e9be9c71a61fab5424d75a9301f (patch) (unidiff) | |
tree | b88bf3e82cafc0ac279eb46b8ebc61f112083032 /kaddressbook/kaddressbookmain.cpp | |
parent | 376ffdba71ab4d7d7988229f38678394a54e5576 (diff) | |
download | kdepimpi-6b166ece0a576e9be9c71a61fab5424d75a9301f.zip kdepimpi-6b166ece0a576e9be9c71a61fab5424d75a9301f.tar.gz kdepimpi-6b166ece0a576e9be9c71a61fab5424d75a9301f.tar.bz2 |
many AB fixes
Diffstat (limited to 'kaddressbook/kaddressbookmain.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/kaddressbookmain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/kaddressbookmain.cpp b/kaddressbook/kaddressbookmain.cpp index 2832257..519dc92 100644 --- a/kaddressbook/kaddressbookmain.cpp +++ b/kaddressbook/kaddressbookmain.cpp | |||
@@ -182,58 +182,58 @@ void KAddressBookMain::slotNewToolbarConfig() | |||
182 | { | 182 | { |
183 | #ifndef KAB_EMBEDDED | 183 | #ifndef KAB_EMBEDDED |
184 | applyMainWindowSettings( KGlobal::config(), "MainWindow" ); | 184 | applyMainWindowSettings( KGlobal::config(), "MainWindow" ); |
185 | #else //KAB_EMBEDDED | 185 | #else //KAB_EMBEDDED |
186 | qDebug("KAddressBookMain::slotNewToolbarConfig() not implemented by ulf" ); | 186 | qDebug("KAddressBookMain::slotNewToolbarConfig() not implemented by ulf" ); |
187 | #endif //KAB_EMBEDDED | 187 | #endif //KAB_EMBEDDED |
188 | } | 188 | } |
189 | 189 | ||
190 | void KAddressBookMain::configureKeys() | 190 | void KAddressBookMain::configureKeys() |
191 | { | 191 | { |
192 | #ifndef KAB_EMBEDDED | 192 | #ifndef KAB_EMBEDDED |
193 | KKeyDialog::configureKeys( actionCollection(), xmlFile(), true, this ); | 193 | KKeyDialog::configureKeys( actionCollection(), xmlFile(), true, this ); |
194 | #else //KAB_EMBEDDED | 194 | #else //KAB_EMBEDDED |
195 | qDebug("KAddressBookMain::configureKeys() not implemented by ulf" ); | 195 | qDebug("KAddressBookMain::configureKeys() not implemented by ulf" ); |
196 | #endif //KAB_EMBEDDED | 196 | #endif //KAB_EMBEDDED |
197 | } | 197 | } |
198 | 198 | ||
199 | void KAddressBookMain::closeEvent( QCloseEvent* ce ) | 199 | void KAddressBookMain::closeEvent( QCloseEvent* ce ) |
200 | { | 200 | { |
201 | bool mModified = mCore->modified(); | 201 | bool mModified = mCore->modified(); |
202 | bool mAskForQuit = KABPrefs::instance()->mAskForQuit; | 202 | bool mAskForQuit = KABPrefs::instance()->mAskForQuit; |
203 | 203 | ||
204 | QString mess = i18n( "Close KA/Pi?"); | 204 | QString mess = i18n( "Close KA/Pi?"); |
205 | if ( mModified == true ) | 205 | if ( mModified == true ) |
206 | mess += i18n( "\nChanges will be saved!"); | 206 | mess += i18n( "\nChanges will be saved!"); |
207 | else | 207 | else |
208 | mess += i18n( "\nNo unsaved changes detected!\nNothing will be saved!"); | 208 | mess += i18n( "\nNo unsaved changes detected!\nNothing will be saved!"); |
209 | 209 | ||
210 | bool mQuit = true; | 210 | bool mQuit = true; |
211 | 211 | ||
212 | 212 | ||
213 | if (mAskForQuit) | 213 | if (mAskForQuit) |
214 | { | 214 | { |
215 | 215 | ||
216 | int res = QMessageBox::information( this, "KA/Pi", mess , i18n("Yes!"), i18n("No"), 0, 0 ); | 216 | int res = QMessageBox::information( this, "KA/Pi", mess , i18n("Yes!"), i18n("No"), 0, 0 ); |
217 | if (res == 0) | 217 | if (res == 0) |
218 | mQuit = true; | 218 | mQuit = true; |
219 | else | 219 | else |
220 | mQuit = false; | 220 | mQuit = false; |
221 | } | 221 | } |
222 | 222 | ||
223 | if (mQuit == false) | 223 | if (mQuit == false) |
224 | return; | 224 | return; |
225 | 225 | ||
226 | if (mModified == true) | 226 | if (mModified == true) |
227 | { | 227 | { |
228 | save(); | 228 | save(); |
229 | mCore->saveSettings(); | 229 | mCore->saveSettings(); |
230 | KABPrefs::instance()->writeConfig(); | 230 | //KABPrefs::instance()->writeConfig(); |
231 | } | 231 | } |
232 | 232 | ||
233 | ce->accept(); | 233 | ce->accept(); |
234 | } | 234 | } |
235 | 235 | ||
236 | #ifndef KAB_EMBEDDED | 236 | #ifndef KAB_EMBEDDED |
237 | #include "kaddressbookmain.moc" | 237 | #include "kaddressbookmain.moc" |
238 | #endif //KAB_EMBEDDED | 238 | #endif //KAB_EMBEDDED |
239 | 239 | ||