From ed1eac5e36e675b030cb5a5aa90fb2d44eb40c73 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Oct 2004 10:29:56 +0000 Subject: phone fixes --- diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 1a06956..1050f55 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -40,6 +40,7 @@ $Id$ #include #include #include +#include #include #include diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index efcd492..7ec3fca 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2809,7 +2809,8 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode) if ( external ) abLocal.removeSyncAddressees( !isXML); qDebug("Saving remote AB "); - abLocal.saveAB(); + if ( ! abLocal.saveAB()) + qDebug("Error writing back AB to file "); if ( isXML ) { // afterwrite processing abLocal.postExternSync( mAddressBook,mCurrentSyncDevice ); diff --git a/libkdepim/phoneaccess.cpp b/libkdepim/phoneaccess.cpp index 357cd39..fe914dd 100644 --- a/libkdepim/phoneaccess.cpp +++ b/libkdepim/phoneaccess.cpp @@ -131,13 +131,17 @@ bool PhoneAccess::writeToPhone( QString fileName) { #ifdef DESKTOP_VERSION +#ifdef _WIN32_ + QString command ="kammu --restore " + fileName ; +#else QString command ="./kammu --restore " + fileName ; +#endif #else QString command ="kammu --restore " + fileName ; #endif int ret; while ( (ret = system ( command.latin1())) != 0 ) { - qDebug("Error S::command returned %d. asking users", ret); + qDebug("Error S::command returned %d.", ret); int retval = KMessageBox::warningContinueCancel(0, i18n("Error accessing device!\nPlease turn on connection\nand retry!"),i18n("KO/Pi phone access"),i18n("Retry"),i18n("Cancel")); if ( retval != KMessageBox::Continue ) -- cgit v0.9.0.2